summaryrefslogtreecommitdiffstats
path: root/pw/pw.c
diff options
context:
space:
mode:
authorSean Farley <scf@FreeBSD.org>2008-02-23 01:25:22 +0000
committerSean Farley <scf@FreeBSD.org>2008-02-23 01:25:22 +0000
commit14adf1693e6ac259fe83515489e9761ddb607a9d (patch)
treefb378a5a2d4843cc487a3ddd7057ac1ded6be64b /pw/pw.c
parent6bd94e3955aed67d5ee599170607d9a8c0dd07ca (diff)
downloadpw-darwin-14adf1693e6ac259fe83515489e9761ddb607a9d.tar.gz
pw-darwin-14adf1693e6ac259fe83515489e9761ddb607a9d.tar.zst
pw-darwin-14adf1693e6ac259fe83515489e9761ddb607a9d.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.c3
1 files changed, 2 insertions, 1 deletions
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",