Fedora 12/Debian logon GUI with root

Source: Internet
Author: User

Just installed fedora 12 and logged on to the GUI as the root user. The error "Fault Identification" is returned ". Checked: by default, the root logon GUI is not allowed.

 

Solution:

(1) Log On As a common user.

(2) # Su

Switch to root.

(3) # vi/etc/PAM. d/TPD

Add "#" in front of the following line and comment it out:
Auth required pam_succeed_if.souser! = Root quiet

(4) # vi/etc/PAM. d/TPD-passwaord

Add "#" in front of the following line and comment it out:
Auth required pam_succeed_if.souser! = Root quiet

It is verified that sudo VI/etc/PAM is used. you cannot edit these two files in D/TPD, because the user added during installation is no longer in the sudo list by default. You must switch to root through Su to edit these two files.

In fact, the single user mode is entered at startup. The default mode is the root user. You can directly edit these two files. However, this method is a bit of a hack, and we still use the general method on the whole point.

(5) # reboot

Then you can log on with the root user.

 

 

------------------------------------------------

Update 2012-05-22:

Recently switched to Debian, the situation is similar, and the solution is similar:

Http://www.cnblogs.com/floatedclouds/archive/2011/09/29/2195356.html

By default, Debian does not allow root logon.

(1) Allow Debian to log on as root

Modify the logon pam file of gdm3

# Vi/etc/pam. d/gdm3

Set auth required pam_succeed_if.so user! = Root quiet_success comment out // Add this row before #

Restart

(2) Enable Debian to log on automatically as the root user.

First, modify the configuration file of gdm3.

# Vi/etc/gdm3/deamon. conf

AutomaticLogin = false // change to true

AutomaticLogin = root // automatically log on as the root user

If you want to wait a few seconds to log on again, use the following

TimedLoginEnable = true

TimedLogin = root

TimedLoginDelay = 5 // login with a latency of 5 seconds, which can be modified

Finally, gdm3 automatically logs on to the pam file.

# Vi/etc/pam. d/gdm3-autologin

Set auth required pam_succeed_if.so user! = Root quiet_success comment out. // Add # in front of the bank to cancel the restriction that Debian will not allow root login.

Restart.

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.