Adding new users
midio at att.net
Sat Mar 23 10:03:13 PST 2002
It won't hurt to useradd then userdel several times until you get it
exactly the way you want. That's what I did (er, umm.. do - I don't add
users very often). Just don't experiment with root and you'll be fine.
"Jeff" <mr2323a at comcast.net> wrote in message
news:03b801c1d219$23b4a060$1401a8c0 at buford...
> From: "ira mendell" <ibm at bestweb.net>
> > realize that they added items to the man useradd. your right -n is
> > Redhat version.
> > A script would be better if I knew how to write one.
> > I gather the long way is in order then;
> > 1) groupadd -g(gid) <newuser name>
> > 2) useradd -m<newuser name>
> > 3) passwd <newuser>
> > 4) cd /home/<newuser>
> > 5) chown -R <newuser>
> > I hope this is getting closer. I think I still would have to set
> > and change permissions?
> You can leave off the chown, it's automatically done. You might need
> specify the shell option. I don't know if Redhat defaults to bash or
> Redhat install puts ash, tcsh and some others on by default). The
> command doesn't need the gid option, it's automatic (unless you _want_
> specify a number). And finally, I hope that <newuser name> on the
> a typo. It should be the new group name. Either way, _in this
> manpages don't spell it out clearly (as they sometimes don't IMO) it
> hurt to play around with these commands. I tend to learn more from
> commands and seeing what they did, than just reading a manpage alone.
> *Warning* My perspective is that I'm willing to trash a system to
> system I play (learn) on has no data that even needs to be saved, and
> I've trashed it before. Figuring out why, and how to fix it is even
> (knowledge). Please take that into account (though the useradd,
> etc..commands are fairly benign).
> Have fun!
> Unsubscribe: send email to listar at linuxfromscratch.org
> and put 'unsubscribe lfs-support' in the subject header of the message
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message
More information about the lfs-support