View Single Post
Old 1st February 2013, 15:30
DaWy DaWy is offline
Junior Member
Join Date: Feb 2013
Posts: 19
Thanks: 1
Thanked 1 Time in 1 Post
Default jailkit - Activate jailkit user can't login

Hi guys! I've just installed ISPConfig with one OVH Dedicated Servers. (self install)

I've fallen in love with ISPConfig, its just amazing... but there's one thing I cant make it work (Sorry for my horrible english)

When I create a new ssh user for one website folder, I can connect with it without the jailkit enabled (so chroot option is "none"), but if I enable the option to "jailkit" the user can't login (it logins but insta kick him).

This is the log from the /var/log/auth.log when user's connect:

Feb  1 14:22:28 ks3266342 sshd[6088]: Accepted password for test from port 57056 ssh2
Feb  1 14:22:28 ks3266342 sshd[6088]: pam_unix(sshd:session): session opened for user test by (uid=0)
Feb  1 14:22:29 ks3266342 jk_chrootsh[6095]: now entering jail /var/www/clients/client1/web2 for user test (5006) with arguments
Feb  1 14:22:29 ks3266342 jk_chrootsh[6095]: abort, failed to find user 5006 in /var/www/clients/client1/web2/etc/passwd
Feb  1 14:22:30 ks3266342 sshd[6088]: pam_unix(sshd:session): session closed for user test
The file that it says that does not exists (/var/www/clients/client1/web2/etc/passwd)ofc it exists. Here it comes:

So whats the problem? I've updated jailkit to the last version (2.5) still not working.

Im sure jailkit is working, cuz if I remove the jailkit option in the chroot option on user edit, the user can login, but then he can browser all the path's... so thats not viable ofc.

My brain is starting to became black mat...

Anyone can help with this? thnx in advance!!!
Reply With Quote
Sponsored Links