On Fri, 13 Feb 2009 15:43:49 +0800 Chuanwen Wu <[email protected]> wrote:
> Hi, here is the root infomation in my /etc/passwd: > root:x:0:0:root:/root:/bin/bash Looks okay, can't see anything wrong in bash configs, too. > I got the login information below from the tail of /var/log/messages: ... I believe this clearly shows that pam shouldn't be the issue, but something that gets launched (and that should be shell) is. I don't know if there are any issues with bash and I rarely use it myself (only as a login shell on debian machines, 'cause they have it on root, installing zsh to usr), but prehaps there are in some bugzilla. Also, I can assume that getty somehow fails to launch /bin/login correctly or /bin/login somehow fails. You can check that getty (agetty, in gentoo), not something else, gets launched from /etc/inittab and recompile it, just in case. Then you can try recompiling the shadow package, since /bin/login, which should launch the shell belongs to it. You can also check if it's possible to make agetty run something else, then /bin/login (should be), and launch 'strace /bin/login' instead, or just run agetty through 'strace -f', which'll show you all the kernel calls it uses and if there are any failures. I've found some obscure mistakes (my mistakes, always) that way, but it might be quite time-consuming. -- Mike Kazantsev // fraggod.net

