From 5ffde2e5b3c975bb9ad1cb7feee755370241e0d3 Mon Sep 17 00:00:00 2001 From: mtm Date: Sat, 20 Oct 2007 00:45:31 +0000 Subject: Allow adding a user(s) to additional groups in batch mode as well. Submitted by: Eygene Ryabinkin (modulo minor changes) MFC after: 2 weeks --- usr.sbin/adduser/adduser.8 | 2 +- usr.sbin/adduser/adduser.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin/adduser') 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 ;; -- cgit v1.1