MFC: 1.31

Allow adding a user(s) to additional groups in batch mode as well.

	Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
		      (modulo minor changes)
This commit is contained in:
mtm 2007-10-28 21:13:23 +00:00
parent 7a4e93b8ed
commit 50769d391f
2 changed files with 2 additions and 1 deletions

View File

@ -212,7 +212,7 @@ This option makes
.Ar login_group .Ar login_group
the default. the default.
.It Fl G Ar groups .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. 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. The user is a member of these groups in addition to their login group.
.It Fl h .It Fl h

View File

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