From owner-freebsd-bugs@FreeBSD.ORG Sun Mar 2 05:10:00 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BCD5EF40 for ; Sun, 2 Mar 2014 05:10:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 786C31AE6 for ; Sun, 2 Mar 2014 05:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s225A0Ym008591 for ; Sun, 2 Mar 2014 05:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s225A0S6008590; Sun, 2 Mar 2014 05:10:00 GMT (envelope-from gnats) Resent-Date: Sun, 2 Mar 2014 05:10:00 GMT Resent-Message-Id: <201403020510.s225A0S6008590@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Adam McDougall Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C35DDF3E for ; Sun, 2 Mar 2014 05:09:11 +0000 (UTC) Received: from newred.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B08A41AE2 for ; Sun, 2 Mar 2014 05:09:11 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by newred.freebsd.org (8.14.7/8.14.7) with ESMTP id s2259BxP011615 for ; Sun, 2 Mar 2014 05:09:11 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.7/8.14.7/Submit) id s2259BIu011613; Sun, 2 Mar 2014 05:09:11 GMT (envelope-from nobody) Message-Id: <201403020509.s2259BIu011613@cgiserv.freebsd.org> Date: Sun, 2 Mar 2014 05:09:11 GMT From: Adam McDougall To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: bin/187189: pw groupmod groupname -g ### creates duplicate groups X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Mar 2014 05:10:00 -0000 >Number: 187189 >Category: bin >Synopsis: pw groupmod groupname -g ### creates duplicate groups >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 02 05:10:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Adam McDougall >Release: 10.0-RELEASE >Organization: >Environment: FreeBSD hostname 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: 'pw groupmod www -g 12345' is expected to change the GID of www in /etc/group from 80 to 12345 like it does in 9.2-RELEASE, but instead it will create another duplicate of the www group with the new GID, causing conflicting information. It can happen more than once. >How-To-Repeat: # grep www /etc/group www:*:80 # pw groupmod www -g 12345 # grep www /etc/group www:*:80: www:*:12345: >Fix: >Release-Note: >Audit-Trail: >Unformatted: