[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 on RHEL 4
From: |
Olivier Sessink |
Subject: |
Re: [Jailkit-users] "lost connection" in simple scp/sftp jail on RHEL 4 |
Date: |
Tue, 06 Mar 2007 00:04:35 +0100 |
User-agent: |
Icedove 1.5.0.9 (X11/20061220) |
Driedger,Norbert [Ontario] wrote:
> Hello,
>
>
>
> Last year I had good success setting up jailed users with jailkit-1.3 on
> a system running RHEL 3. Now I tried the same using jailkit-2.3 on RHEL
> 4 and it’s not working. I get the following in /var/log/messages when I
> 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 checked
> /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 nscd?
regards,
Olivier