diff options
author | Sean Farley <scf@FreeBSD.org> | 2008-02-23 01:25:22 +0000 |
---|---|---|
committer | Sean Farley <scf@FreeBSD.org> | 2008-02-23 01:25:22 +0000 |
commit | bc991a6d5f6434ab105c55b28dce829dd0e8c493 (patch) | |
tree | b44c2c52e3287817e029474703bb52e40ec25ba8 /usr.sbin/pw/pw.c | |
parent | 72d1b828b3e8b94ccd08baabfc395048003b9343 (diff) | |
download | src-bc991a6d5f6434ab105c55b28dce829dd0e8c493.tar.gz src-bc991a6d5f6434ab105c55b28dce829dd0e8c493.zip |
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
Notes
Notes:
svn path=/head/; revision=176474
Diffstat (limited to 'usr.sbin/pw/pw.c')
-rw-r--r-- | usr.sbin/pw/pw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pw/pw.c b/usr.sbin/pw/pw.c index 3d9573f815ef..e9d93632888f 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", |