Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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!

Replies are listed 'Best First'.
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 not a whimper to be heard...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-11-20 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (286 votes). Check out past polls.

    Notices?