Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: OpenSSH hangs after TIOCSCTTY.

Subject: Re: OpenSSH hangs after TIOCSCTTY.
Date: Tue, 10 Apr 2007 09:25:25 +1000
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 the works.


--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

<Prev in Thread] Current Thread [Next in Thread>