Installed and tested two times.
Same setup: ISPConfig 3.0.3.1. Ubuntu 10.10 and Jailkit 2.12-1 (installed before ISPConfig).
When i create a shell user with chroot - Jailkit
i have:
/etc/passwd
Code:
heino1:x:5004:5005::/var/www/clients/client1/web1/./home/heino1:/bin/false
i try to connect using ssh and in /var/log/auth.log i see:
Code:
Dec 28 17:56:00 server1 sshd[31363]: Accepted password for heino1 from 87.110.9.38 port 9435 ssh2
Dec 28 17:56:00 server1 sshd[31363]: pam_unix(sshd:session): session opened for user heino1 by (uid=0)
Dec 28 17:56:00 server1 sshd[31363]: pam_unix(sshd:session): session closed for user heino1
I change shell manually:
Code:
usermod -s /usr/sbin/jk_chrootsh heino1
Dec 28 17:57:34 server1 usermod[31398]: change user 'heino1' shell from '/bin/false' to '/usr/sbin/jk_chrootsh'
in final i have this in auth.log
Code:
Dec 28 17:58:33 server1 sshd[31414]: pam_unix(sshd:session): session opened for user heino1 by (uid=0)
Dec 28 17:58:33 server1 jk_chrootsh[31430]: now entering jail /var/www/clients/client1/web1 for user heino1 (5004)
Dec 28 17:58:33 server1 jk_chrootsh[31430]: ERROR: failed to execute shell /bin/bash for user heino1 (5004), check the permissions and libraries of /var/www/clients/client1/web1//bin/bash
Dec 28 17:58:33 server1 sshd[31414]: pam_unix(sshd:session): session closed for user heino1
As in the begining said. Installed and tested two times. In correct order (as manual instructs).
PS. without jailkit everything works fine. But not so secure as i want.
Recent comments
12 hours 52 min ago
12 hours 58 min ago
17 hours 56 min ago
1 day 37 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 6 hours ago
1 day 13 hours ago
1 day 17 hours ago
1 day 19 hours ago