UnixServerAdmin

Server Administration & Management

How to enable GUI Root login in RHEL/CentOS 6.X

RHEL/CentOS 6.X (Works in 6.1/6.2/6.3/6.4 Only) 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.

1. Log in as normal user

2. Then open GUI terminal (bash prompt) and type the following command to become root user:

$ su –

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

# cp /etc/pam.d/gdm /root

4. Now open /etc/pam.d/gdm using gedit or vi text editor, Find and Comment out line by prefixing # or remove this line into your gdm file like below:

# vim /etc/pam.d/gdm

auth required pam_succeed_if.so user != root quiet

5. Save and close the file. Logout from terminal and from GUI itself. Now you should be able login as root user using GDM GUI login manager.

Advertisements

November 8, 2012 - Posted by | Tips & Tricks, Unix/Linux | , ,

1 Comment »

  1. Does not work on RHEL 6.5. Only shows other users and the selection “Other” but no root.

    Comment by Paul Edward | February 21, 2014 | Reply


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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: