From owner-freebsd-questions Thu Feb 1 23:53:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f76.law9.hotmail.com [64.4.9.76]) by hub.freebsd.org (Postfix) with ESMTP id 1BEDC37B491 for ; Thu, 1 Feb 2001 23:53:41 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Feb 2001 23:53:40 -0800 Received: from 209.244.181.177 by lw9fd.law9.hotmail.msn.com with HTTP; Fri, 02 Feb 2001 07:53:40 GMT X-Originating-IP: [209.244.181.177] From: "gerald stoller" To: lucas@slb.to Cc: freebsd-questions@freebsd.org Subject: Re: UID at login time Date: Fri, 02 Feb 2001 02:53:40 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 02 Feb 2001 07:53:40.0847 (UTC) FILETIME=[41FAD7F0:01C08CED] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >From: Lucas Bergman >Reply-To: lucas@slb.to >To: gerald stoller >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