Thursday, September 29, 2011

Login as root in fedora 15

Fedora 15 released and I am posting solution for root lovers who like to login with root. Fedora 15 root login is exactly same like Fedora 14 root login.

WARNING: - It’s not at all good to login as root from GUI. It’ Dangerous.
In Fedora 15 You cannot login as a root from GUI. By Default, only Normal users are allowed to login from GUI mode.
I Managed to Login as a root from GUI on Fedora 15. Follow these steps and you will able to Login as a root from GUI on Fedora 15

If you want to login as a root from GUI in Fedora 15 then you have to edit something like some files which are located to /etc/pam.d/

Open your Terminal from Applications -> System Tools -> Terminal
Now Login as a root from your terminal

Step 1:- [itsolutions@ask4itsolutions.com]$ su – root
Password:-


Step 2:- Now go to your /etc/pam.d/ directory.

[root@ask4itsolutions]# cd /etc/pam.d/
(Then first take a backup of gdm file)
[root@ask4itsolutions]# cp gdm gdm.bkp ( always take backup if anything goes wrong you can correct it by original file)
Step 3:- Now open gdm file in your favorites editor. I am using vi as my editor.
[root@ask4itsolutions pam.d]# vi gdm
Find and Comment or remove this line into your gdm file
auth required pam_succeed_if.so user != root quiet

(Delete ! Exclamation mark )

Step 4:- Save & Exit From that File. ( In Fedora10 Till step 4 is enough to Login as a root from GUI but for Fedora 15 you need one more file to edit otherwise you cannot Login as a root even though you edited gdm file).

Step 5:- Here is the additional file that you need to edit and that file name is gdm-password. Open gdm-password file in your favorite’s editor. I am using vi as my editor.
Then first take a backup of gdm-password file
[root@ask4itsolutions pam.d]# cp gdm-password gdm-password.bkp ( always take backup if anything goes wrong you can correct it by original file)
[root@ask4itsolutions.com pam.d]#vi gdm-password
Find and Comment or remove this line into your gdm file

auth required pam_succeed_if.so user != root quiet

(Delete ! Exclamation mark)

Now login as root user and end enjoy work with fedora




No comments:

Post a Comment