Add an User

[1] Add an User "cent" as an example below.

root@higuys ~]# useradd cent

[root@higuys ~]#passwd cent

Changing password for user cent.

New UNIX password:# set password

Retype new UNIX password:# confirm

passwd: all authentication tokens updated successfully.

[root@higuys ~]# exit

# logout

[2] Try to switch to a user that was added above.

higuys login:cent # input user name

password: # password

[cent@higuys ~]$ su # switch to root

Password: # root password

[root@higuys ~]# # just switched to root

[3] Make a user be only a user who can switch to root as an administration user. (it's 'cent' in this example)

[root@higuys ~]#usermod -G wheel cent


[root@higuys ~]#vi /etc/pam.d/su

[4] To forward to emails for root user to another user, set like follows. (it's 'cent' in this example)

[root@higuys ~]#vi /etc/aliases

# Person who should get root's mail

# last line: uncomment and change to a user

root:cent

[root@higuys ~]#newaliases # reload

Get Online Linux Training www.higuys.in