From owner-freebsd-current@FreeBSD.ORG Sat Jan 26 21:51:57 2008 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7438816A417 for ; Sat, 26 Jan 2008 21:51:57 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.freebsd.org (Postfix) with ESMTP id 1FC9213C457 for ; Sat, 26 Jan 2008 21:51:56 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (thor.farley.org [192.168.1.5]) by mail.farley.org (8.14.1/8.14.1) with ESMTP id m0QLppfB048962 for ; Sat, 26 Jan 2008 15:51:51 -0600 (CST) (envelope-from scf@FreeBSD.org) Date: Sat, 26 Jan 2008 15:51:51 -0600 (CST) From: "Sean C. Farley" To: freebsd-current@FreeBSD.org Message-ID: User-Agent: Alpine 1.00 (BSF 882 2007-12-20) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on mail.farley.org Cc: Subject: [patch] '-d' option for pw to delete list of members from a group X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 21:51:57 -0000 Currently, pw allows the deletion of members of a group by replacing the current list with a new list ('-M' option). This requires a person or program to collect the list, remove members and send the new list to pw. The patch[1] I wrote adds the '-d' option to groupmod to allow the specific deletion of members from a group. It is a bit old but applies cleanly to HEAD and RELENG_7. This was written while working on BSDUpdates[2] some time ago. It has just taken me awhile to make the patch and find time to commit it. :) I hope to commit it soon if no one has any complaints. Sean 1. http://www.farley.org/freebsd/tmp/pw.patch 2. http://bsdupdates.com/ -- scf@FreeBSD.org