Enable root login in Fedora 14

Now I am going to show how to enable root login in Fedora 14. After installation of Fedora 14 it doesn’t allow root login for security purpose. Manually we have to enable it.

Step 1: Open terminal (Application->Accessories->Terminal)

Step 2: Log as root in terminal. type “su” then it will want the password and enter the       password.

Step 3:  Change the present directory to /etc/pam.d. For this type “cd /etc/pam.d”

Step 4: Open gdm file in Vim text editor in the terminal. Command “vi gdm”

For Step 1-4 your terminal should be as following image:

Open gdm file as root

Step 1-4

Step 5: After Step 4 Terminal will be as follow

gdm file

Step 5

Step 6: Type the i key of the keyboard, this will take this to the editing mode. You will be able to see “–Insert–” in the down of the window as marked by follow.


Editing mode

Step -5

Step 7: take the cursor to the line 3 (auth        required pam_succeed……) delete the line or comment the line with # which I do in following image.


Step 6

Step 8: Now to save and edit firs press the ESC key to enter command mode. Then to save and quit type “:wq” as image and press Enter.


Save and quit

Step 8

Step 9: Now in the same way open the gdm-password file and comment or delete the 3rd line (auth   required pam_succeed _if.so….)

Commenting gdm-password file

Step 9

Step 10: In the same way of step 8 save and exit this. now type exit and log off from your account and login in root account.


Final view of Terminal

Step 10


Enjoy stuff from root.





About Razib Chandra Deb

I completed my BSc in CSE from CSE Department of KUET. Currently I am working as a Software Engineer in Samsung R&D Institute Bangladesh(SRBD). I am interested in image processing.
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

15 Responses to Enable root login in Fedora 14

  1. metalmaus says:

    it doesn’t work

  2. MJ says:

    Thanks a lot! It works!

  3. Anil says:

    Great, Thanks …I have never seen such a good tutorial in my life. It is not only true step by step but easy also. Either tutorial if give such level of content skips the basic insert and save things. and the tutorial that provide insert , save etc does not has this level of depth. The beauty of this tutorial is that it contains both. I have no words, marvelous job done by providing this tutorial.

  4. NEEAJ says:

    I have read your all tutorial blogs. you really rock yaar.
    They are all very good , sophisticated and very comprehensive.
    thanks a lot and i really looking forward to follow you.
    please do let me your upcoming blogs and guidance regarding
    your favorite blogs of other people blogs like yours.

  5. Pingback: How to login as root on Fedora 14 from console

  6. vaibhav says:

    I cannot log in as root in fedora 14.Everytime I enter su it gives “su: cannot set groups: Operation not permitted”..How to solve this.I cannot use chmod since I cant get to root.Please help me.

  7. b says:

    Many Thanks for reminding me about pam.d :).. This also works for the problem of fedora crash, if ur system sometime crashed when u were running ‘su’ from the terminal. You might face a problem on next login, which doesnt allow to run as superuser.. To be specific u might see something like this ‘su: cannot set groups :Operation not permitted’
    In that case this is a good solution, to login as root and change permissions to /bin/su (chmod u+s), which otherwise u cannot..

  8. ali says:

    Thank you Mr. razibdeb It works. I have a question: Which version of linux is better to work with? actually I’m a physicist and wanna run Quantum-Espresso on it .

  9. Pingback: how to login to fedora as root

  10. Pingback: how to login to fedora 17 as root

  11. Satyajeet Ranjan says:

    Itz showing no such file or directory when i type cd/etc/pam.d

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s