Solution to RHEL6's failure to log on as a Root user

Source: Internet
Author: User
After RHEL6 is installed, you cannot log on to the system as Root on the login interface by default. First, log on to the system as the user created during installation, open the terminal, and convert it to the root user. The corresponding command is suroot, enter the root user password and press Enter. (backup is recommended for files to be modified for recovery.) edit/etc/pam. the command for the d/TPD file is vi/etc/pam. d. Locate authrequiredp RHEL 6 on the EM 6 console. After installation is complete, the user cannot log on to the system as the Root user by default. First, log on to the system as the user created during installation,

Open the terminal and convert it to the root user. The corresponding command is su root. Enter the root user password and press Enter,

(We recommend that you back up the files to be modified for recovery)

Edit the/etc/pam. d/TPD File

The corresponding command is vi/etc/pam. d/TPD.

Go to auth required pam_succeed_if.so user! = Root quiet

Delete this sentence

Save (: wq)

Edit/etc/pam. d/TPD-password

Go to auth required pam_succeed_if.so user! = Root quiet

Delete this sentence

Save (: wq)

Reboot is enough.

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.