Pages

Wednesday, December 30, 2009

Unable to login on Fedora 11 with root user in GUI

I just install linux ( Fedora core -11) after interval of more than 6 months. Just installed Fedora core 11, surprisely there was one more option to create file sytem ext4 ,this file system was new for me.
Now as i finished installation ooooooooooooopsss
I was'nt able to login in GUI as super user. System refelect an error "unable to authoneticate"
Finaly after a littel bit R & D i got solution.Here it is:
 Fedora 10 and above uses pam module called pam_succeed_if.so. This module is designed to succeed or fail authentication based on characteristics of the account belonging to the user being authenticated. One use is to select whether to load other modules based on this test. This module blocks root login using GUI.
to fix this problem


Login as a normal user and open terminal
now give command



[satish@malanch.com]$su

Type your root password. Next, make a backup of /etc/pam.d/gdm, enter:


[root@malanch.com]#cp /etc/pam.d/gdm /root

Now open /etc/pam.d/gdm using gedit or vi text editor, enter:





[root@malanch.com]#vim  /etc/pam.d/gdm

Alternatively, you can do everything in a one command:



su -c 'gedit /etc/pam.d/gdm

Find line that read as follows:



auth required pam_succeed_if.so user != root quiet
Remove or comment out line by prefixing #.



# auth required pam_succeed_if.so user != root quiet

Save and close the file. Logout from terminal and from GUI itself.
now restart ur machine by init 6.
Now you can login to your sytem in GUI with root user. (only in case of Fedora 10)

In case of Fedora 11 you need to edit one more file which is located in /etc/pam.d/gdm-password

[root@malanch.com]#vim /etc/pam.d/gdm-password

Find line that read as follows:


auth required pam_succeed_if.so user != root quiet



Remove or comment out line by prefixing #.




Now restart and enjoy login with root.


                                                                ... Satish Malanch
                                                                     
satishmalanch@gmail.com

Unable to login on Fedora 11 with root user in GUI

I just install linux ( Fedora core -11) after interval of more than 6 months. Just installed Fedora core 11, surprisely there was one more option to create file sytem ext4 ,this file system was new for me.
Now as i finished installation ooooooooooooopsss
I was'nt able to login in GUI as super user. System refelect an error "unable to authoneticate"
Finaly after a littel bit R & D i got solution.Here it is:
 Fedora 10 and above uses pam module called pam_succeed_if.so. This module is designed to succeed or fail authentication based on characteristics of the account belonging to the user being authenticated. One use is to select whether to load other modules based on this test. This module blocks root login using GUI.
to fix this problem


Login as a normal user and open terminal
now give command



[satish@malanch.com]$su

Type your root password. Next, make a backup of /etc/pam.d/gdm, enter:


[root@malanch.com]#cp /etc/pam.d/gdm /root

Now open /etc/pam.d/gdm using gedit or vi text editor, enter:





[root@malanch.com]#vim  /etc/pam.d/gdm

Alternatively, you can do everything in a one command:



su -c 'gedit /etc/pam.d/gdm

Find line that read as follows:



auth required pam_succeed_if.so user != root quiet
Remove or comment out line by prefixing #.



# auth required pam_succeed_if.so user != root quiet

Save and close the file. Logout from terminal and from GUI itself.
now restart ur machine by init 6.
Now you can login to your sytem in GUI with root user. (only in case of Fedora 10)

In case of Fedora 11 you need to edit one more file which is located in /etc/pam.d/gdm-password

[root@malanch.com]#vim /etc/pam.d/gdm-password

Find line that read as follows:


auth required pam_succeed_if.so user != root quiet



Remove or comment out line by prefixing #.




Now restart and enjoy login with root.


                                                                ... Satish Malanch
                                                                     
satishmalanch@gmail.com