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







It works well. YOur instructions are so clear.
Congratulations!!!
Fabricio.
Thanks a lot
It works fine.
worked great thanks!
Thx a lot, bro…It works great!
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.
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?
Works Fine.
Thanks a lot …
good post
nicely explained…
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).
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
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.
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
Hello,
No, No Need to reboot machine.
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.
You will need to reboot the machine in order to login.
Works great on Fedora16