[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Jailkit-users] "lost connection" in simple scp/sftp jail onRHEL 4

From: Driedger,Norbert [Ontario]
Subject: RE: [Jailkit-users] "lost connection" in simple scp/sftp jail onRHEL 4
Date: Tue, 6 Mar 2007 09:49:21 -0500

Yes, that was it!  I had no libnss*.so files.  Actually, rather than
copy them all in, all I needed was libnss_files-2.3.4.so and of course
the symbolic link libnss_files.so.2 in /home/sftproot/lib64.

Thanks very much!

-----Original Message-----
From: address@hidden
[mailto:address@hidden On
Behalf Of Olivier Sessink
Sent: March 5, 2007 6:05 PM
To: address@hidden
Subject: Re: [Jailkit-users] "lost connection" in simple scp/sftp jail
onRHEL 4

Driedger,Norbert [Ontario] wrote:
> Hello,
> Last year I had good success setting up jailed users with jailkit-1.3
> a system running RHEL 3.  Now I tried the same using jailkit-2.3 on
> 4 and it's not working.  I get the following in /var/log/messages when
> try to scp to the jailed user:
> Mar  5 15:30:03 pontiac2 sshd(pam_unix)[5442]: session opened for user
> pds by (uid=0)
> Mar  5 15:30:03 pontiac2 jk_chrootsh[5443]: now entering jail
> /home/sftproot for user pds (2039)
> Mar  5 20:30:03 pontiac2 jk_lsh[5443]: jk_lsh version 2.3, started
> Mar  5 20:30:03 pontiac2 jk_lsh[5443]: cannot find user name for uid
> 2039: Success

> This feels like something simple, like a permissions problem or
> something like that, but everything I've looked at seems OK.  I
> /home/sftproot/etc/passwd and it looks OK.  Where is it looking for a
> user name and not finding it?

it is searching for the user using libnss. Can you check if all the
/libnss*.so files that are on your real system are available in the
jail? Can you post your /etc/passwd and <jail>/etc/passwd for user pds ?
  Is your system running nscd? Does it make a difference if you stop


Jailkit-users mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]