Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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?
Discipulus personae non gratae..
[Corion]: Your Mother: Hmm - I have the pmdev nodelet, which has some links, but I'm not sure what links/guides there are
[Corion]: pmdev wiki maybe?
[Discipulus]: uh neat karl!
[Your Mother]: Both good things to try, thank you!
[karlgoethebier]: Discipulus: see my scratchpad for <<>>...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2017-07-21 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (319 votes). Check out past polls.