In Linux, new user accounts automatically receive mail accounts. Here are the steps for adding a new user account in Red Hat Enterprise Linux 5 and its derivative CentOS 5.

User Manager1. Click Applications then select System Settings and click Users and Groups. This will launch the User Manager window.
User Manager2. In the User Manager window, click Add User. This will show the Create New User window.
Create New User3. In the Create New User window, fill in the User Name, Full Name, Password and Confirm Password. Click Ok when you’re done.
User Manager4. That’s it, you have just created a new user. To remove a user, select the user you want to remove and click Delete.
NoteYou can also do this from the command line, below are the equivalent commands. You need to have root level access to use the commands below.
  • usr/sbin/useradd [options] login_name
    creates a new user
  • usr/sbin/usermod [options] login_name
    modifies a user’s attributes
  • usr/sbin/userdel [options] login_name
    deletes the specified user. Use the -r option to automatically remove the user’s home directory and mail spool.
  • usr/bin/passwd login_name
    sets the password for the specified user
  • usr/sbin/groupadd [options] group_name
    creates a new group
  • usr/sbin/groupmod [options] group_name
    modifies a group’s attributes
  • usr/sbin/groupdel group_name
    deletes the specified group
Type in any of the commands above without any parameter to see that command’s help information.

Related Pages

 

Visit the forum to ask for help or to give a comment.

***
Posted on 4/23/2007 and last updated on 11/7/2009
Filed under CentOS 5 , Red Hat Enterprise Linux 5 , System Administration