图形界面 Fedora Core 12/Core 11 How to log in GUI as root 怎样才能以 root 登录 log in
root login
Fedora 11 by default doesn't allow someone to login as root through
GDM. Instead you have to login as a normal user and become root through
your terminal. However many users still want to login as root. Although
I don't approve this here is how to do it. Don't forget that once you
login as root its easier to damage your system so don't do the
following unless you are sure what you are doing.
Open a terminal and type:
su -c 'gedit /etc/pam.d/gdm'
Here find the following line
auth required pam_succeed_if.so user != root quiet
and comment it like this
#auth required pam_succeed_if.so user != root quiet
Save the file and logout.
Do the same for /etc/pam.d/gdm-password
su -c 'gedit /etc/pam.d/gdm-password'
Now you can login as root. However you will notice that some stuff like Services won't run. To solve this type:
su -c 'gedit /etc/PolicyKit/PolicyKit.conf'
And paste the following line between the
The problem that remains is that system-config-services is slow to
respond, but it works. Don't forget, it's not a good idea to login as
root.
I hope this guide was useful for all Fedora users, old and new ones! If
you think there is something that should be added on this guide just
leave me a comment below!
++++++++++++++++++++++++++++++++++++++++++++++
You can login as root in F11 gdm (and F10)
At the gdm login screen use CTRL+ALT+F2 to go to a virtual console, login as normal root and then create root2 as follows:
Code:
adduser -o -u 0 -g 0 -d /root root2
passwd root2
Now CTRL+ALT+F1 (or may be F7) to return to gdm and login as root2, gdm will think you are root (and will display root user in top right menu bar in gnome)
++++++++++++++++++++++++++++++
/etc/pam.d/gdm
Try making the same change in /etc/pam.d/gdm-password .
++++++++++++++++++++++++++++
Problem is scottro the instructions weren't complete for F11, you need to make an additional edit in /etc/pam.d/gdm-password (as mentioned above). I corrected the FAQ
Now, to really make your system insecure and likely to break, add this line to to /etc/PolicyKit/PolicyKit.conf (between the
tags)
Code:
You'll now find that system-config-services and other stuff works, but is very slow to respond.
You'll also probably find your fedora system is broken and requires a reinstall after a few weeks, but it's your risk.
+++++++++++++++++++++++++++++++++
阅读(1458) | 评论(0) | 转发(0) |