Linux-Noob Forums
ADD a user - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: Tips and Tricks (https://www.linux-noob.com/forums/forum-59.html)
+--- Thread: ADD a user (/thread-3982.html)



ADD a user - Digerati - 2003-12-15


To add a user to your system bring up a terminal window and issue these commands:

 

To add a user use useradd [username]

then password the name by using passwd like

passwd [username]

All this must be carried out as super user

 

To become a super user just type su - and enter the root password.

Ex.

[digerati@rh9 /]$su -

password:

[digerati@rh9 root]# useradd scrote

[digerati@rh9 root]# passwd scrote

Changing password for user scrote.

New password:

Retype new password:

passwd: all authentication tokens updated successfully.

 

All done.




ADD a user - kZo - 2003-12-15

Quote:[digerati@rh9 root]# useradd scrote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="104" data-ipsquote-contentclass="forums_Topic"><div>
 

FYI:

 

[digerati@rh9 root]# useradd -g groupname user

 

The -g specifies a group that you'd like to add the user to. Very helpful to have this before you create the user.

 

For instance:

 

[v702623@itmail]# useradd -g popusers newuser

 

creates the user "newuser" and adds him to the group popusers which have access to my server to use the pop3 email.
</div></blockquote>