Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Dec 2001 11:42:36 -0500
From:      leegold <leegold@operamail.com>
To:        Brian T.Schellenberger <bts@babbleon.org>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: adduser script unexpected action
Message-ID:  <3C30CD09@operamail.com>

next in thread | raw e-mail | index | archive | help
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 <bts@babbleon.org> =====
>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 <prefix>/<username>, 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




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