Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-24-2008, 10:20 PM   #1
LQ Newbie
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
root login failed - RHEL AS2.1

Hi! I'm a newbie in Linux. I'm having login problem as root in RHEL AS2.1. After I login as root and supplied the password for it, the screen becomes blank and goes back to login graphical console again. This problem occurred after our area encountered power interruptions. But I can login as another user and su root. I tried logging using text mode (Ctrl-Alt-F1) and root login works. What needs to be done in order for me to login as root in graphical console.

Can anyone please advise/help. Thanks.
Old 04-25-2008, 06:08 AM   #2
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
please post the .bash_profile of root, along with the relevant scripts which are called from it.
Also please post /etc/pam.d/login

Last edited by Agrouf; 04-25-2008 at 06:10 AM.
Old 04-28-2008, 02:33 AM   #3
LQ Newbie
Registered: Apr 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Hi Agrouf,

Thanks very much for the immediate reply.

This is the .bash_profile:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then

# User specific environment and startup programs
export PATH

This is .bashrc
# User specific aliases and functions
# Source global definitions

if [-f /etc/bashrc ]; then

This is the /etc/pam_d/login
auth required /lib/security/
auth required /lib/security/ service=system-auth
auth required /lib/security/
account required /lib/security/ service=system-auth
password required /lib/security/ service=system-auth
session optional /lib/security/

This is the /etc/pam_d/rlogin
auth required /lib/security/
auth required /lib/security/
auth required /lib/security/
auth sufficient /lib/security/
auth required /lib/security/ service=system-auth
account required /lib/security/ service=system-auth
password required /lib/security/ service=system-auth
session optional /lib/security/ service=system-auth

What do you think is wrong? Please advise. Thanks again.

Last edited by ibsalcedo; 04-28-2008 at 03:06 AM.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Login to Root in RHEL bjory Red Hat 2 03-27-2008 02:04 AM
unable to login as user other than root on RHEL 4 done some changes in etc /shawdow abhi_raj Linux - Newbie 1 07-18-2006 09:47 AM
lock root account after 3 login attempts - RHEL AS 3 jrparker2005 Red Hat 1 05-17-2005 01:43 PM
KDM: 'Login failed' if not root Ianed Linux - Software 6 09-10-2003 07:41 PM
root login failed ! marudhu Linux - General 5 07-02-2003 01:27 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration