Howto: Login as a root from GUI on Fedora 16

Hi Friends,

Fedora 16 Just released and I am posting solution for root lovers who like to login with root. Fedora 16 root login is exactly same like Fedora 15 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 16 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 16. Follow these steps and you will able to Login as a root from GUI on Fedora 16

If You want to login as a root from GUI in Fedora 16 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 16 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 16.

Hope guys this helps you. Waiting for your comments and Feedback.

If this works for your then Please Click Google +1 Button and Show Your Support. Your Support will encourage me to write more articles.

####

Tejas Barot’s Latest Linux Quote :-

“Now-a-days, Life and than after Time is Most Important, Then why to invest both in WinowsZ and Viruses ??? Invest Valuable Life and Time in Linux, Use Linux and Open Source” – Tejas Barot

For More Linux quotes by Tejas Barot please visit :- http://goo.gl/w3sd9

####

Enjoy Stuff from root :) Enjoy Fedora 16 :)

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.


22 Comments »

 
  • Tom T says:

    Thanks a heap! I’m using my system to study for a RH exam and the endless su/sudo/passwords was driving me crazy. If I wanted Vista I’d have installed it…

  • rajat says:

    thanx….sss..

  • Rajendra says:

    hey.. thank you it worked..
    but, after doing this , once i switch to the user .. again i get a login screen then i tried to login with my old password .. but, i can’t.
    wat to do now . ??
    help me :)

    thank you bro :)

  • Rana says:

    thanx, it really works!!!!
    but i have one question (totally newbie :P ):- Once loged in as root, i cud not see the folder i created in “Home”. Also I got Aptana Studio 3 downloaded in user account. The location of that was in Downloads folder, which again is not visible when loged in as root :(
    Sems to me that there needs to be something other to be configured to get those files when loged in as root. Awaiting for your prompt response.
    Thankx again :)

  • AJAY B says:

    thank you. you done a great job in this forum

  • Prateek Porwal says:

    Excellent work.
    your work saved me fro doing all admin tasks from terminal. Thanks a lot.

  • Fabricio says:

    It works well. YOur instructions are so clear.
    Congratulations!!!
    Fabricio.

  • DB says:

    Thanks a lot

    It works fine.

  • Jason says:

    worked great thanks!

  • Sum says:

    Thx a lot, bro…It works great!

  • Tejas Barot says:

    Hello,

    Just Go to Login Screen and Chooes “Other” Option to Login and Provide username “root” and then password.

    Let me know if still its not clear.

  • Jamie Loreseco says:

    I followed your instructions, and I may just be stupid or whatever, but after logging out/rebooting the machine, how do you ACTUALLY login to the root account?

  • Nandan90 says:

    Works Fine.

    Thanks a lot … :)

  • Guptesh says:

    good post

  • Baban Gaigole says:

    nicely explained…

  • kumar cp says:

    hey bro

    thanx a lot…….

    it would be a great help if u’ll publish a step to use Fedora 16 as a DHCP server(how to configure dhcp service in FC 16).

  • mohammed says:

    hello

    thank you so much
    it’s very useful

    for last one comment
    you don’t need reboot the machine
    just logout and login with root

  • Toby Fruth says:

    Alternatively, open Terminal, use su- and enter root password.

    then

    yum install gedit

    to install text editor. Then

    gedit &

    to open gedit. Browse to the files and edit in gedit.

  • Amit Verma says:

    Hey Caroline Glasgow, when editing in Vi, you can save the file by pressing ESc key and then SHIFT + ZZ (Z Key should be pressed two times).

    Your file will be saved and you will be automatically out of that file.

    Hope it helps

    Amit Verma

  • Tejas Barot says:

    Hello,

    No, No Need to reboot machine.

  • Caroline Glasgow says:

    I have been following your process for logging on as root on Fedora 16. I followed the process but do not know how to save the file as there is no option to do so? I also tried the password file and it did not seem to exist as it said new file against gdm-password.
    Any help you can give is much appreciated as I am trying to amend the read / write settings on a hard drive which I have formatted using Fedora 16 which will not allow me to us as I am not the owner ‘root’ is so will not allow me to use it.

  • Sif Baksh says:

    You will need to reboot the machine in order to login.

    Works great on Fedora16

 

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>


− eight = 1