summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw/pw.8
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.8
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.8')
-rw-r--r--usr.sbin/pw/pw.810
1 files changed, 10 insertions, 0 deletions
diff --git a/usr.sbin/pw/pw.8 b/usr.sbin/pw/pw.8
index 82f010b..4287055 100644
--- a/usr.sbin/pw/pw.8
+++ b/usr.sbin/pw/pw.8
@@ -155,6 +155,7 @@
.Op Fl l Ar name
.Op Fl M Ar members
.Op Fl m Ar newmembers
+.Op Fl d Ar oldmembers
.Op Fl h Ar fd | Fl H Ar fd
.Op Fl N
.Op Fl P
@@ -779,6 +780,15 @@ of existing users to a group without replacing the existing list of
members.
Login names or user ids may be used, and duplicate users are
silently eliminated.
+.It Fl d Ar oldmembers
+Similar to
+.Fl M ,
+this option allows the
+.Em deletion
+of existing users from a group without replacing the existing list of
+members.
+Login names or user ids may be used, and duplicate users are
+silently eliminated.
.El
.Pp
.Ar groupadd
OpenPOWER on IntegriCloud