diff options
author | Mike Makonnen <mtm@FreeBSD.org> | 2007-10-20 00:45:31 +0000 |
---|---|---|
committer | Mike Makonnen <mtm@FreeBSD.org> | 2007-10-20 00:45:31 +0000 |
commit | 88b63feb56bf207296e2a0e6bea38dc570e16a8f (patch) | |
tree | 10714e870e760e40bd1aa948bc748db9dfb1074d /usr.sbin/adduser | |
parent | 1131159255b5ea6fdb7b67d71aab0095e5fe9c10 (diff) |
Allow adding a user(s) to additional groups in batch mode as well.
Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> (modulo minor changes)
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=172823
Diffstat (limited to 'usr.sbin/adduser')
-rw-r--r-- | usr.sbin/adduser/adduser.8 | 2 | ||||
-rw-r--r-- | usr.sbin/adduser/adduser.sh | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/adduser/adduser.8 b/usr.sbin/adduser/adduser.8 index ab5b364d69c7..2df836ac5c19 100644 --- a/usr.sbin/adduser/adduser.8 +++ b/usr.sbin/adduser/adduser.8 @@ -212,7 +212,7 @@ This option makes .Ar login_group the default. .It Fl G Ar groups -Additional groups. +Space-separated list of additional groups. This option allows the user to specify additional groups to add users to. The user is a member of these groups in addition to their login group. .It Fl h diff --git a/usr.sbin/adduser/adduser.sh b/usr.sbin/adduser/adduser.sh index b7b97e099e4d..53c42de030a1 100644 --- a/usr.sbin/adduser/adduser.sh +++ b/usr.sbin/adduser/adduser.sh @@ -603,6 +603,7 @@ input_from_file() { get_homedir get_password get_expire_dates + ugroups="$defaultgroups" add_user ;; |