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
This commit is contained in:
Mike Makonnen 2007-10-20 00:45:31 +00:00
parent 1131159255
commit 88b63feb56
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -603,6 +603,7 @@ input_from_file() {
get_homedir
get_password
get_expire_dates
ugroups="$defaultgroups"
add_user
;;