Re: OpenSSH hangs after TIOCSCTTY.
- From: Raj Mathur <raju@xxxxxxxxxxxxxxx>
- Date: Tue, 10 Apr 2007 09:55:59 +0530
On Tuesday 10 April 2007 04:55, Darren Tucker wrote:
Raj Mathur wrote:
Debian Etch with openssh-server 4.3p2-9, running Gforge
4.5.14-22, libpam-pgsql 0.5.2-9+b1, libpam-runtime 0.79-4
There are some system users (in /etc/passwd), and some users are
defined in PostgreSQL/PAM. I can remote login to the system
users just fine. However, when I try to login as any user
defined in PostgreSQL, sshd logs me in using the password, prints
MOTD, but never gives a shell prompt.
I would compare the output of "lsof -p [pid]" between a working
session and a non-working one. I suspect that the PAM module is
leaving an extra file descriptor open which throws a spanner into
OK, it wasn't an SSH problem at all, turned out to be due to a bug in
the name server cache daemon (nscd) as documented in
with a workaround at
Fortunately I saw that su was also evincing the same behaviour, which
made it easier to track the bug down.
Raj Mathur raju@xxxxxxxxxxxxx http://kandalaya.org/
GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F
It is the mind that moves
- Prev by Date: Re: OpenSSH hangs after TIOCSCTTY.
- Next by Date: Question on DNS spoofing and CheckHostIP
- Previous by thread: Re: OpenSSH hangs after TIOCSCTTY.
- Next by thread: Question on DNS spoofing and CheckHostIP