Date: Thu, 1 Feb 2001 16:43:49 -0600 From: Lucas Bergman <lucas@slb.to> To: gerald stoller <gerald_stoller@hotmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: UID at login time Message-ID: <20010201164349.A32409@billygoat.slb.to> In-Reply-To: <F244eUBUhr3ukkwu1Bt0000291f@hotmail.com>; from gerald_stoller@hotmail.com on Thu, Feb 01, 2001 at 04:32:26PM -0500 References: <F244eUBUhr3ukkwu1Bt0000291f@hotmail.com>
index | next in thread | previous in thread | raw e-mail
> I created two standard user accounts for me, which had the UIDs > 1001 & 1002 . Recently, trying to the other stuff that I wanted > (pdksh), I ran a /stand/sysinstall on top of my previous > installation. This (somewhat) wiped out my accounts, ... Yeah, when you use /stand/sysinstall on a running system, don't do one of the "canned" install options, or it will probably blow away files you don't want it to. > ...so I used adduser to make one standard user account for me, but > its UID was assigned 1000, ergo I couldn't write to the files that > I had created earlier. To fix this, I went into /etc/passwd and > changed my UID there from 1000 to 1001. This doesn't seem to work, > when I do a ps it shows my UID to be 1000. There are two password files, /etc/passwd and /etc/master.passwd, the latter being only readable by uid 0. If I were you, I'd make sure the changes you made to /etc/passwd are also in /etc/master.passwd. The commands pwd_mkdb(8) and vipw(8) should be a big help here. An alternative, of course, is to leave yourself as uid 1000, and do # chown -R yourname.yourname ~yourname to give your new uid ownership of your home directory. > The next time that I use adduser, I expect it will try to assign UID > 1001,... No, looking at the source of adduser, it looks like it grabs the next _available_ uid out of the passwd file. Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the messagehelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010201164349.A32409>
