From 6f86094030fd6ec916f5aaa86ececd7fb5d96228 Mon Sep 17 00:00:00 2001 From: Sean Farley Date: Sat, 23 Feb 2008 01:25:22 +0000 Subject: 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 --- pw/pw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pw/pw.c') diff --git a/pw/pw.c b/pw/pw.c index 3d9573f..e9d9363 100644 --- a/pw/pw.c +++ b/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", -- cgit v1.2.3