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:
parent
4a5da6b57d
commit
5ffde2e5b3
@ -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
|
||||
|
@ -603,6 +603,7 @@ input_from_file() {
|
||||
get_homedir
|
||||
get_password
|
||||
get_expire_dates
|
||||
ugroups="$defaultgroups"
|
||||
|
||||
add_user
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user