On 8/10/12 8:50 PM, Curt Lundgren wrote:
I confess my backward ways.  When I add a new user I do the following:

  * edit /etc/passwd, copy the last line, usually adding a user with the
    next available UID above 500 and setting the group to 100, like
    foouser:x:501:100:Foo User:/home/foouser:/bin/your-favorite-shell
  * edit /etc/shadow: copy the last line, as above foouser:
    some-password-string:increment-the-above-number by a couple::99999::::
  * create a new directory in /home, like mkdir /home/foouser; chown
    foouser:user foouser
  * At this point the new user is valid on the system.  It may be
    wrong-so-wrong, but it's always worked for me
  * You don't benefit/suffer from the default content in /etc/skel/,
    you're starting from scratch

Call me crazy, call me a cab.  I've never gotten comfortable with the
adduser syntax, so the easy-sleasy way for me is the above.

Use vipw, don't edit /etc/passwd, /etc/shadow, /etc/group directly if you can help it.

        adduser <username>


--

Drew from Zhrodague
lolcat divinator
[email protected]

--
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

Reply via email to