Re: [Chrootssh-users] dropped connection after logging in
Brought to you by:
punkball
From: lee f. <lfe...@4l...> - 2004-03-11 15:40:11
|
On Wed, 2004-03-10 at 12:59, lee fellows wrote: > Hi, > > Using openssh-3.8p1-chroot on a SuSE 9.0 i386 machine. Attempting to > use the chroot functionality with new accounts having their homedirs > created on the fly, if they do not previously exist. This was built on > the machine and installed in /usr/local. We are using pam to > authenticate against a ldap server. The server is authenticating the > user OK, but drops the connection when it attempts to chroot to the > jailed root. I did not have a problem with openssh-3.7p1-chroot in the > same environment, with the exception that it would not create new users > home dirs on login. > > Using ldd to try and identify missing libraries has been unsuccessful. > > Setting LogLevel to DEBUG3 has only resulted in a report that the > server could not change root to the jailed directory, but no reason is > given. The server then terminates the connection with the client, but > the log says that the client terminated the connection. > > Ideas? Do you need more info? > > Thank you. > Replying to myself: It appears that the patch for implementing chroot behaviour was coming too soon in the do_setusercontext function of session.c. When I moved the #ifdef PAM/#endif PAM block that trailled the patch to a place immediately prior to the bulk of the chroot patch, the pam_mkhomedir works and the chroot works. Attached is my diff with the clean openssh-3.8p1 source. |