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
1 day 3 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 10 hours ago
1 day 12 hours ago
1 day 13 hours ago
2 days 5 hours ago
2 days 6 hours ago
2 days 9 hours ago