Add an user Who can switch to root account

Add an User “linux24h”

[root@linuxviet ~]# useradd linux24h

Set password “linux24h” User

[root@linuxviet ~]# passwd linux24h

Make an User “linux24h” Who can switch to root:

[root@linuxviet ~]# usermod -G wheel linux24h

Uncomment the following line

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

Then, save it and exit :wq

To foward root’s Email to “linux24” user:

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

etc aliases centos

And reload it

root@linuxviet ~]# newaliases

Add a Comment

Your email address will not be published. Required fields are marked *