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.

Curt

On Fri, Aug 10, 2012 at 7:00 PM, sam walton <[email protected]> wrote:

> Man, I feel like a baby asking this. Normally I would find an answer
> easily on the Googles, but this one eludes me. I'm trying out Centos 6.3 as
> a webserver so I'm starting out with the minimal install and building it up
> into a Rails server. I believe the only user is root and I'm logged in, but
> I'm sure there is a utility in the CLI to create a new user and endow it
> with the right admin privileges.
>
> All I'm seeing is something to install some OpenVZ whatever that is. I'm
> trying to get more comfortable with the CLI, eschewing the GUI. In normal
> UNIX it's preferable to deactivate the root user, opting for sudo once that
> new user is large and in charge.
>
> Would that be good practice for a Rails server? I want to understand what
> all is needed before I try something like Puppet or another utility to
> automate server setup. What's a good up-to-date resource for server setup
> on Centos?, sam
>
> --
> 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
>

-- 
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