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 | 6f86094030fd6ec916f5aaa86ececd7fb5d96228 (patch) | |
| tree | 33cc0b8ab714094961a2064c522903a22bcae2a1 /pw/pw.c | |
| parent | 0f2cd15af6b03e178b23fdd07c57c6775fb28cb8 (diff) | |
| download | pw-darwin-6f86094030fd6ec916f5aaa86ececd7fb5d96228.tar.gz pw-darwin-6f86094030fd6ec916f5aaa86ececd7fb5d96228.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
Diffstat (limited to 'pw/pw.c')
| -rw-r--r-- | pw/pw.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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", |
