[Chrootssh-users] chroot jail problem
Brought to you by:
punkball
From: myogendra <yog...@gm...> - 2006-01-31 15:20:41
|
Hi everybody, I found ur email-id in google. I am trying for setting the chroot for ssh. I entered the following entry in the /etc/pam.d/sshd file session required pam_chroot.so onerr=3Dfail and I entered the entry for user1 in /etc/security/chroot.conf file user1 /home/user1 And I did the modifications to /etc/ssh/ssd_config file=20 UsePrivilegeSeparation no after that, while logging to the ssh server with the user1 account, I am = getting the following errors. #ssh localhost -l user1 Connection to 192.168.30.10 closed by remote host. Connection to 192.168.30.10 closed. My /var/log/secure entries for this event are : Jan 19 16:14:14 ndserver sshd[15669]: Accepted password for user1 from = 192.168.30.10 port 1195 ssh2 Jan 19 16:14:14 ndserver pam_chroot[15669]: /home/user1 is writable by = non-root Jan 19 16:14:14 ndserver sshd[15669]: fatal: PAM session setup = failed[14]: Cannot make/remove an entry for the specified session and Also I followed the instructions chrootsh.sourceforge.net. It is = also not working. Please help me. thanks & regards, yogendra. |