Linux – Can’t log in locally, but SSH works

linux

I can't log in to the console locally. After logging in, it flashes back to the login prompt. If given a wrong password, it will pause for a couple seconds then give the standard "Login incorrect" response. It affects all accounts: root, my user account, and a new account I made to debug the issue. I can log in via SSH perfectly fine.

/etc/inittab: http://pastie.org/3737435

auth.log:

Apr  6 03:09:01 [hostname] /usr/sbin/crond[1122]: pam_unix(crond:session): session opened for user root by (uid=0)
Apr  6 03:09:01 [hostname] /USR/SBIN/CROND[1122]: pam_unix(crond:session): session closed for user root

Best Answer

First, gather information by inspecting /var/log/messages for any information that may be there.

Next, narrow the scope of your problem down. Log in to SSH and change the interactive shell for a user and see if that changes anything. Try csh or zsh - anything, really. I've heard of SSH not honoring .bashrc files, so perhaps somehow there is a TMOUT=0 variable in there or some other logic that kicks you out immediately (but SSH connections aren't honoring it, which is possible).

Related Topic