Linux Admin Blog

System Administration, Linux, Solaris, Backup, Networking, Security, Mysql, Script, Tips & Tricks

CentOS5/RHEL5 User Administration

Posted by sanjaydalal4u on September 29, 2009

1) Add User

Useradd

2)      Delete user

Userdel

3)      Modify user

Usermod

4) Add Group

gpasswd

5) Delete group

groupdel

6) Modify group

groupmod

7) Add User to Group

Use useradd command to add new users to existing group (or create a new group and then add user). If group does not exist, create it. Syntax:

Syntax:

useradd -G {group-name1},{group-name2} username (for secondary group)

useradd -g {group-name} username (for primary group)

useradd1

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>