Common Linux users disguise root users

Source: Internet
Author: User

Common Linux users disguise root users
Version 1

System Version: Red Hat EnterpriseLinux *

2 configuration Step 2.1 Add a new user

Add a new user.

Useradd username

2.2 Change User Password

Change the user password.

Passwd username

2.3 modify the passwd configuration file

Modify the passwd file and grant the root information to the username of the new user.

Vi/etc/passwd # copy the content after root to the new user root: x: 0: 0: root:/bin/bashusername: x: 0: 0: root:/bin/bash

2.4 verify disguise

Verify by using the su command. If it is displayed as root, the disguise is successful.

Su-username [root @ hostname ~] #

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.