Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: script

by odie (Sexton)
on May 23, 2001 at 23:15 UTC ( #82683=note: print w/ replies, xml ) Need Help??


in reply to How do I add a new Unix user?

While quite possible, the question remains, why? There already is a quite useful little widget called "adduser" that probably comes with most unix systems. It's quite effective.
If you want to do it manually, I THINK this would suffice:

  • Create the user home directory: Copy /etc/skel to /home/username
  • Add the user entry to /etc/passwd and /etc/passwd- (if using shadow passwords)
  • Dito for the users group: /etc/group and /etc/group-
I think that would be enough. Then again, I am not quite sure.

Odie

--
I am a manual signature virus. Copy me please!


Comment on Re: script
Re: Re: script
by Anonymous Monk on May 24, 2001 at 00:38 UTC
    There already is a quite useful little widget called "adduser" that probably comes with most unix systems

    useradd is, I believe, more common than adduser (on my machine, adduser is symlinked to useradd).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://82683]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-11-28 18:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (199 votes), past polls