Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Sep 2003 00:10:08 -0700 (PDT)
From:      "Jason A. Young" <jyoung@power.doogles.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/50331: Changing uid with pw causes duplicate user name uid pairs.
Message-ID:  <200309030710.h837A8Gb008534@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/50331; it has been noted by GNATS.

From: "Jason A. Young" <jyoung@power.doogles.com>
To: freebsd-gnats-submit@freebsd.org,
	<kevin_stevens@pursued-with.net>
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309030710.h837A8Gb008534>