Connection drops after entering password.

Darren Tucker dtucker at zip.com.au
Fri Oct 3 12:57:17 EST 2003


Anthony Agnello wrote:
> 
> Has anyone seen the error that I'm getting below?  After you ssh to the box
> and enter the password the connection just closes.
> 
> SSH Version
> { root at xxxxxxxx} # ssh -V
> OpenSSH_3.7p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7b 10 Apr 2003
> 
> OS Version
> { root at xxxxxxxx } # oslevel -r
> AIX 4330-09
[snip]
> /var/adm/messages
> Oct  2 13:05:29 xxxxxxxxx sshd[18860]: Accepted password for xxxxxxxxx
> xxx.xxx.xxx port 1775 ssh2
> Oct  2 13:05:29 xxxxxxxxx sshd[21276]: fatal: Failed to set process
> credentials

The call to setpcred() is failing for some reason.  Does it happen for all
accounts or only some?  Do those accounts work OK with telnet?

You can try the attached patch which will make the error non-fatal and log
the errno returned, which might help figure out what's going on.

-- 
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.
-------------- next part --------------
Index: session.c
===================================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/session.c,v
retrieving revision 1.257
diff -u -p -r1.257 session.c
--- session.c	2 Oct 2003 10:07:09 -0000	1.257
+++ session.c	3 Oct 2003 02:53:35 -0000
@@ -1229,7 +1229,8 @@ do_setusercontext(struct passwd *pw)
 
 #ifdef HAVE_SETPCRED
 		if (setpcred(pw->pw_name, (char **)NULL) == -1)
-			fatal("Failed to set process credentials");
+			error("Failed to set process credentials: %s",
+			    strerror(errno));
 #endif /* HAVE_SETPCRED */
 #ifdef HAVE_LOGIN_CAP
 # ifdef __bsdi__


More information about the openssh-unix-dev mailing list