Howto: Login as a root from GUI on Fedora 15

Hi Friends,

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 :- Its not at all good to login as root from GUI. It’ DANGEROUS. BUT if some one wants to know that how to login as a root from GUI then follow the instructions.

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 Te rminal 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

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 favourite 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

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 favourite editor. I am using vi as my editor.

Then first take a backup of gdm-password file

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


Step 6 :- Save & Exit from File. Now Logout and Try to Login as a root user. Now you are able to Login as a root user from GUI in Fedora 15.

Thanks

Enjoy Stuff from root :) Enjoy Fedora 15 :)

All Comments Accepted.

Content Protection by DMCA.com

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


17 Comments »

 
  • Windstorm says:

    Thanks it was really helpful……Just got the right procedure on right time.

  • Syed Muqtader Ali says:

    Dear ,

    Very Nice Document!!! apprecaite your kind help to all of us.

  • Tejas Barot says:

    Hello,

    You can enter to run-level 1 with the same method as RHEL.

    For rest thing let me know answers of following questions :-

    1) By which user you are trying to edit and save file ?
    2) By which user and to which user you are trying to copy file ???

  • sandesh says:

    hey hiiii,
    i m using fedora 15 and even when i tried to save and copy gdm file it is not allowing me. while copying i m getting error called “permission denied can’t create gdm as regular file” and while saving i got the error saying “E212: can’t open file for writing” and below tht it ask me to enter or press another command. even i m trying to do it with forcefully i m getting this error. wht shld i do. 1 more thing i want ask tht how to enter in run level 1 while start up the m/c as we do it by pressing up-down arrow in RHL. how to enter in fedora 15. pls help me

  • Arif says:

    thank you very much, this was really required or i was going to uninstall this, i dont know how much fragile linux is that using it from administrator account will destroy it, if it is such fragile operating system why to spend so much energies on it, also developers may give a warning that you much not login as root in GUI but after all this is my machine and i want it to be in my full control as i want, you can give me warning but if i want to mess up with my pc whats the problem to anybody :)) thanks..

  • ju says:

    u saved my life. I’ve installed again ’cause i was thinking i forgot my root pw

  • Tejas Barot says:

    Hello,

    You haven’t mentioned error here ? What’s the error you are getting while saving it? To turn off Airplane Mode from Network Manager you have to do it from root and have to allow disable user control.

  • mark says:

    I edited these files as described above from a terminal as root in fedora 15, but I got errors when I tried to save them. I cannot turn off airplane mode from the network manager in fedora 15.

  • Tom says:

    I have always used KDE as my UI, and recently installed x86 FC15 in an older machine. I had always installed Gnome with KDE as Fedora considers Gnome as the default. This time I tried installing without it, and found that I was able to log in as root without any changes to files. In fact the gdm files aren’t even generated by the system during OS installation.

  • sukhraj sandhu says:

    thnxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

  • Vix says:

    thnx very much…

  • Abdul Wahab says:

    Thanks is very helpful……………………..

  • Tejas Barot says:

    Hi,

    To save file, You can do following.

    If you are using VIM or vi editor then Press ESC twice and then press :wq and if you want to save forcefully then press :wq! it will work for you. Let me know if you still face any issue.

  • henar says:

    Hi! I have done steps 1, 2 and 3, and everything is ok. But I am a really new user, and I don’t know how can I do step 4: SAVE & EXIT from TERMINAL (after removing the selected line). Can you help me, please?

 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


× 2 = sixteen