Date: Fri, 02 Feb 2001 02:53:40 -0500 From: "gerald stoller" <gerald_stoller@hotmail.com> To: lucas@slb.to Cc: freebsd-questions@freebsd.org Subject: Re: UID at login time Message-ID: <F76LYCT4aJ6pkNzPZrI00003114@hotmail.com>
next in thread | raw e-mail | index | archive | help
>From: Lucas Bergman <lucas@slb.to> >Reply-To: lucas@slb.to >To: gerald stoller <gerald_stoller@hotmail.com> >CC: freebsd-questions@freebsd.org >Subject: Re: UID at login time >Date: Thu, 1 Feb 2001 16:43:49 -0600 > > > 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. I wanted to deselect some items (particularly binaries) and just load the src files, but it seems I didn't do it. Also, I don't know from what type of source passwd is loaded. > > > ...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. Good, I'm glad to see this. > >Lucas Thanks for all the information. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F76LYCT4aJ6pkNzPZrI00003114>