Wednesday, August 3, 2011

Enable root login in fedora -- Step By Step with Screenshots

Following steps to be followed for enabling Gui mode of root login in Fedora.

1.
Open terminal

2. Run ‘su-’ command to login as root. Enter your root password and press enter.

3. Now we have to change two files for login as root from GUI
4. Run these following commands in terminal.
# gedit/etc/pam.d/gdm

It will open a file in gdit looks like this

Now change the 3rd line as shown below. Simply add a # sign before this line so this line will be treated as comment.

Save this file and close the gedit.

Now edit second file with this following command, run this command in terminal.

#gedit/etc/pam.d/gdm-password

Note: Please remember that all the commands and filenames in the linux are case-sensitive, hence write the command and filename as it is as appear in this guide. Don’t change the case.

It will open the file as shown below.


Again comment the 3rd line with a # sign as shown below.

Now save the file and close it. Then close the terminal and restart the computer.

After restart at login screen select other option as shown below.


After click on other it will ask for username write it root. And click login then enter your root password which you provide at the time of installation of fedora.

Now you are logged in as root.
Note: It is highly recommended not to use the GUI mode of root account, use this mode only in extreme case or if you are expert user of Linux.