My laptop has several CentOS Linux partitions. When I boot into one of them and try to login (I set runlevel to 3 in /etc/inittab because the GNOME login was failing) I get this error:
login: no shell: permission denied
This happens when I try to login as root, or any user. I can't do anything if I can't login. However, I can login to a different partition, and mount the problematic partition, and change this (like runlevel in /etc/initab).
Any ideas on what is causing this (selinux?) and how to fix it?