- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: RHEL AS4 u5 - can't login as root
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2008 01:34 AM
тАО01-14-2008 01:34 AM
RHEL AS4 u5 - can't login as root
I have a RHEL AS4 u5 installation. The system inittab is configured with:
id:5:initdefault:
In this runlevel (5), I am able to login as root.
The problem is when I try to login as root in runlevel 3. I am not able to login or get the shell interface.
For e.g. if I change inittab as:
id:3:initdefault:
It comes up with the login prompt. When I input the user name & password (root &
Crontab file has this for the SHELL variable:
SHELL=/bin/bash
Please help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2008 04:26 AM
тАО01-14-2008 04:26 AM
Re: RHEL AS4 u5 - can't login as root
1) start in runlevel 5
2) go to virtual console - ALT/F2
3) try to login via virtual console
4) go to your XWindow and check /var/log/messages & secure logs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2008 04:36 AM
тАО01-14-2008 04:36 AM
Re: RHEL AS4 u5 - can't login as root
I think I've seen similar misbehaviour at one time. If I recall correctly, it might have been related to some sort of corruption in /etc/passwd.
Please run "pwck -r" to check your password file for errors. Note that some system users, for example adm, news and ident may have a non-existent directory as their home directory. This is not harmful.
In runlevel 5, there is usually a graphic login dialog. In runlevel 3, the login is text-based. Do you mean you can log in as root using the GUI, but not using the text-based prompt? In that case, examine the PAM configuration files in /etc/pam.d, most importantly /etc/pam.d/gdm and /etc/pam.d/login. /etc/pam.d/system-auth is also likely to be important.
Check for syslog messages: examine the files in /var/log. It might be that the session starts normally, but someone has edited root's .profile script so that it causes the session to end immediately. If the command "last root" has a record of the failed login attempts, those logins have in fact been successful from the system's viewpoint; just extremely short ones.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2008 04:51 AM
тАО01-14-2008 04:51 AM
Re: RHEL AS4 u5 - can't login as root
There must be something helpful in /var/log/messages.
Can you log on as another user and su - root ?
This will give you access to the logs and help diagnose the problem.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2008 05:24 AM
тАО01-14-2008 05:24 AM
Re: RHEL AS4 u5 - can't login as root
Vitaly - Unfortunately, it doesn't seem to be the issue with the runlevel. I've tried switching to a virtual terminal (CTRL+ALT+F2), still can't login.
Matti - This one is strange, there is no error to indicate that authentication failed.
I'll try pwck -r, su (root) & take a look at the /var/log/messages.
Further... I'm able to get a shell login if I come through telnet, ssh or Putty. I was suspecting issues with $SHELL not set correctly. Have to check them as well. Will post with updates soon. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2008 05:26 AM
тАО01-14-2008 05:26 AM
Re: RHEL AS4 u5 - can't login as root
Great! As I suggested, now you can check messages and secure logs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2008 06:35 AM
тАО01-14-2008 06:35 AM
Re: RHEL AS4 u5 - can't login as root
Check your pam configuration files, /etc/pam.d/login and /etc/pam.d/system-auth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2008 01:08 PM
тАО12-05-2008 01:08 PM