summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw/pw.c
diff options
context:
space:
mode:
authorscf <scf@FreeBSD.org>2008-02-23 01:25:22 +0000
committerscf <scf@FreeBSD.org>2008-02-23 01:25:22 +0000
commitc88c1096328278076fd266a7a3db46a6040a904d (patch)
treeb44c2c52e3287817e029474703bb52e40ec25ba8 /usr.sbin/pw/pw.c
parent9787c9bf4e6ede80208bdc48d0466ebc9cfdb859 (diff)
downloadFreeBSD-src-c88c1096328278076fd266a7a3db46a6040a904d.zip
FreeBSD-src-c88c1096328278076fd266a7a3db46a6040a904d.tar.gz
Add the groupmod '-d' option to pw to allow the deletion of existing users
from a group without the need to perform the same operation by replacing the existing list via the '-M' option. The '-M' option requires someone to fetch the existing members with pw, deleting the undesired members from the list and sending the altered list back to pw. Approved by: wes (mentor) MFC after: 5 days
Diffstat (limited to 'usr.sbin/pw/pw.c')
-rw-r--r--usr.sbin/pw/pw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pw/pw.c b/usr.sbin/pw/pw.c
index 3d9573f..e9d9363 100644
--- a/usr.sbin/pw/pw.c
+++ b/usr.sbin/pw/pw.c
@@ -117,7 +117,7 @@ main(int argc, char *argv[])
{ /* grp */
"V:C:qn:g:h:H:M:opNPY",
"V:C:qn:g:Y",
- "V:C:qn:g:l:h:H:FM:m:NPY",
+ "V:C:qn:d:g:l:h:H:FM:m:NPY",
"V:C:qn:g:FPa",
"V:C:q"
}
@@ -409,6 +409,7 @@ cmdhelp(int mode, int which)
"\t-g gid group id\n"
"\t-M usr1,usr2 replaces users as group members\n"
"\t-m usr1,usr2 add users as group members\n"
+ "\t-d usr1,usr2 delete users as group members\n"
"\t-l name new group name\n"
"\t-Y update NIS maps\n"
"\t-N no update\n",
OpenPOWER on IntegriCloud