From owner-freebsd-bugs@FreeBSD.ORG Wed Sep 3 00:10:09 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B36E16A54C for ; Wed, 3 Sep 2003 00:10:09 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA04243F75 for ; Wed, 3 Sep 2003 00:10:08 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h837A8Up008535 for ; Wed, 3 Sep 2003 00:10:08 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h837A8Gb008534; Wed, 3 Sep 2003 00:10:08 -0700 (PDT) Date: Wed, 3 Sep 2003 00:10:08 -0700 (PDT) Message-Id: <200309030710.h837A8Gb008534@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Jason A. Young" Subject: Re: bin/50331: Changing uid with pw causes duplicate user name uid pairs. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Jason A. Young" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2003 07:10:09 -0000 The following reply was made to PR bin/50331; it has been noted by GNATS. From: "Jason A. Young" To: freebsd-gnats-submit@freebsd.org, Cc: Subject: Re: bin/50331: Changing uid with pw causes duplicate user name uid pairs. Date: Wed, 3 Sep 2003 02:09:13 -0500 (CDT) This is not replicable on HEAD, probably since 4/28/03 with rev 1.42 of pwd_mkdb, which reworked the logic dealing with uid changes. The issue most likely still exists in 4.x. fury# pw user add -n fred -u 1010 -m fury# id -P fred fred:*:1010:1010::0:0:User &:/home/fred:/bin/sh fury# ls -lad /home/fred drwxr-xr-x 2 fred fred 512 Sep 3 02:05 /home/fred fury# pw user mod fred -u 1005 fury# id -P fred fred:*:1005:1010::0:0:User &:/home/fred:/bin/sh fury# ls -lad /home/fred drwxr-xr-x 2 1010 fred 512 Sep 3 02:05 /home/fred fury# id -P 1005 fred:*:1005:1010::0:0:User &:/home/fred:/bin/sh fury# id -P 1010 id: 1010: no such user fury# grep 1010 /etc/master.passwd fred:*:1005:1010::0:0:User &:/home/fred:/bin/sh -- Jason Young, CCIE #8607, MCSE Sr. Network Technician, WAN Technologies (314)817-0131 http://www.wantec.com