CentOS 5.8 - Can't login to tty1 as root after updates?

Posted by slashp on Server Fault See other posts from Server Fault or by slashp
Published on 2012-09-06T20:03:40Z Indexed on 2012/09/06 21:41 UTC
Read the original article Hit count: 231

Filed under:
|
|
|
|

I've ran a yum update on my CentOS 5.8 box and now I am unable to log into the console as root. Basically what happens is I receive the login prompt, enter the correct username and password, and am immediately spit back to the login prompt. If I enter an incorrect password, I am told the password is incorrect, therefore I know that I am using the proper credentials.

The only log I can seem to find of what's going on is /var/log/secure which simply contains:

15:33:41 centosbox login: pam_unix(login:session): session opened for user root by (uid=0)
15:33:41 centosbox login: ROOT LOGIN ON tty1
15:33:42 centosbox login: pam_unix(login:session): session closed for user root

The shell is never spawned.

I've checked my inittab which looks like so:

1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

And my /etc/passwd which properly has bash listed for my root user:

root:x:0:0:root:/root:/bin/bash

As well as permissions on /tmp (1777) & /root (750).

I've attempted re-installing bash, pam, and mingetty to no avail, and confirmed /bin/login exists.

Any thoughts would be greatly appreciated.

Thanks!!

-slashp

© Server Fault or respective owner

Related posts about linux

Related posts about authentication