Monday, May 3, 2010

Login as a root from GUI RHEL6 BETA

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 RHEL6 Beta You cannot login as a root from GUI. By Default, Only Normal users are allowed in GUI Mode.

Follow these steps and you will able to login as a root from GUI on RHEL6 Beta.

Main Configurable File is "/etc/pam.d/".

Have a look of below steps.

Open your Terminal from Applications -> System Tools -> Terminal

Now Login as a root from your terminal

Step 1 :- [user@localhost]$ su – root
Password:-

Step 2:- Now go to your /etc/pam.d/ directory.

[root@localhost]# 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 favorite editor. I am using vi as my editor.

[root@localhost]# 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.

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 favorite 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@localhost]# 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 RHEL6 Beta.

Thanks,

RHEL6 Beta Edition.

No comments:

Post a Comment