How to make the root user in RedHatLinux unable to log on from the graphic interface

Source: Internet
Author: User
In RedHatLinux, you only need to add a line in the file/etc/pam. d/TPD: (the third line in the example) authrequiredpam_succeed_if.so & n

You only need to add a line in the file/etc/pam. d/TPD in RedHat Linux: (the third line in this example)

Auth required pam_succeed_if.so user! = Root quiet

You can use the vi editor.

This idea comes from the Mechanism in Fedora 10.

In Fedora 10, by default, the root user cannot log in through the graphic interface.

Let's take a look at the content in the initial/etc/pam. d/TPD in Fedora 10: (observe the third line)

If you comment out the third line (as shown below, add a # sign before the line), the system can log on to the system through the root user interface after the file is saved. Therefore, the third line is the main code that controls whether the root user can log on from the graphic interface.

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.