summaryrefslogtreecommitdiffstats
path: root/usr.sbin/adduser
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2007-10-20 00:45:31 +0000
committermtm <mtm@FreeBSD.org>2007-10-20 00:45:31 +0000
commit5ffde2e5b3c975bb9ad1cb7feee755370241e0d3 (patch)
tree10714e870e760e40bd1aa948bc748db9dfb1074d /usr.sbin/adduser
parent4a5da6b57dc54a358915e1b5eee4b6da8586cf16 (diff)
downloadFreeBSD-src-5ffde2e5b3c975bb9ad1cb7feee755370241e0d3.zip
FreeBSD-src-5ffde2e5b3c975bb9ad1cb7feee755370241e0d3.tar.gz
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
Diffstat (limited to 'usr.sbin/adduser')
-rw-r--r--usr.sbin/adduser/adduser.82
-rw-r--r--usr.sbin/adduser/adduser.sh1
2 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/adduser/adduser.8 b/usr.sbin/adduser/adduser.8
index ab5b364..2df836a 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 b7b97e0..53c42de 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
;;
OpenPOWER on IntegriCloud