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.8 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pw/pw.8') diff --git a/pw/pw.8 b/pw/pw.8 index 82f010b..4287055 100644 --- a/pw/pw.8 +++ b/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 -- cgit v1.2.3