Linux-Noob Forums

Full Version: ADD a user
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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.

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>