From owner-freebsd-questions Mon Dec 31 8:43: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from operamail.com (operamail.infinite.com [199.29.68.126]) by hub.freebsd.org (Postfix) with ESMTP id 81D6B37B426 for ; Mon, 31 Dec 2001 08:42:59 -0800 (PST) X-WM-Posted-At: operamail.com; Mon, 31 Dec 01 11:42:36 -0500 X-WebMail-UserID: leegold Date: Mon, 31 Dec 2001 11:42:36 -0500 From: leegold To: Brian T.Schellenberger Cc: freebsd-questions@freebsd.org X-EXP32-SerialNo: 00000000 Subject: RE: adduser script unexpected action Message-ID: <3C30CD09@operamail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: InterChange (Hydra) SMTP v3.62 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Yeah, I went thru the template questions not really understanding what it was asking. While I'm "guilty", I'm not to hot on the adduser script. I tried putting "?" when I didn't understand what it was asking and think that would be a nice option for this script to have one or two sentences of feedback. I wanted to add a generic user, w/the default skel options. No more no less. This thing screwed things up - but I should have "read the man page"... Thanks for the help. >===== Original Message From Brian T. Schellenberger ===== >On Monday 31 December 2001 12:05 am, you wrote: >> I added a user with the adduser script >> and what happened was that a previous existing >> user (probably the wheel member I su'd to >> execute adduser) was overwritten. >> >> It seemed like the dir name of the perexisting user >> was simply replaced by the new user. But the old user >> name still seemed to exist in that I could su/wheel to it. >> >> Does anybody know what I'm talking about? Not >> sure I do - it seemed very strange. > > >Well, something went wrong. > >Examine /etc/passwd. > >Do the two users share the same UID or just the same home directory? > >They *shouldn't* share the same of either, but if I follow the description >below, they in *fact* share the same home directory. You can just fix the >home directory (and/or UID/GID) with vipw. Then you need to "tease out" the >files that *should* belong to each users, and chown -R each directory to its >proper user. > >That'll get you back in business. The next order of business is to try to >reproduce it--each user *should* be assigned by default with a home directory >in /, where prefix is /home in recent releases but used to >be /usr/home from what I can see in earlier releases of FreeBSD. > >In any case, the prefix is merely defaulted by the O/S -- the first time you >used adduser it should have asked you what to set it to and it then it uses >that. > >Come to think of it, I'll be that's what went wrong--the first time you use >adduser it asks for the *defaults* (for each future user account), and *then* >it asks for the user-specific data. If you put the user-specific data when >it asked for the template, you'd get every user using the account data of the >first user you "adduser"ed. Is that plausible? > > > >> >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-questions" in the body of the message > >-- >Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) >Brian, the man from Babble-On . . . . bts@babbleon.org (personal) > http://www.babbleon.org > >-------> Free Dmitry Sklyarov! (let him go home) <----------- > >http://www.eff.org http://www.programming-freedom.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message