Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding users other then root

Status
Not open for further replies.

jaazman

Technical User
Feb 20, 2003
5
0
0
US
Hello all:
I'm new to Sun and I have a Netra-X1 server I have configured the system but I need to add at least one more user besides the ROOT and I don't know how to do it. Is anybody there who can help me with this? Thanks
 
Worth using the man (manual) command help...
the more you use it the sooner you get used to it! :)
for adding users via the terminal prompt use "useradd"
try the below for help..

man useradd

Regards
M
 
#useradd -c username -u (userid) -g (gorupid) -d (home directory) -s (default shell) loginname

c---> comment

Example:

#useradd -c Johnbones -u 101 -g 14 -d /export/home/jbones -s /bin/sh jbones
#passwd jbones
#mkdir /export/home/jbones (homedirectory)
#chown jbones /export/home/jbones

* jbones is username

You can create user accounts by editing /etc/passwd and /etc/shadow files.


 
If you have spaces in your comment, put " " around the comment in the command.
 
I want to thank all of you for your info. It was very helpful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top