Linux common users camouflage root users

  
        

1 Version Information

System Version: Red Hat EnterpriseLinux *


2 Configuration Steps

2.1 Adding New Users

Add a new user.


useradd username


2.2 Modify User Password

Change User Password.


passwd username


2.3 Modify the passwd configuration file

Modify the passwd file to give the root user the new user username.


vi /etc/passwd #Copy the contents of root to the new user root:x:0:0:root:/root:/bin/bashusername:x:0:0 :root:/root:/bin/bash


2.4 Verifying the masquerading

Use the su command to verify that if the display is root, the spoofing is successful.


su - username [root@hostname ~]#
Copyright © Windows knowledge All Rights Reserved