Jailkit SSH User access to /var/www/domain.com ?
I like SSH access and also use SCP to transfer files usually. So it's good to just have one login but I would like to restrict the user just to /var/www/domain.com.
However I can't seem to get this to work.
In the System Settings -> Server Configuration -> Server -> Jailkit
I did set Jailkit chroot home to '/'
The ssh user has jailkit enabled and under options the folder is set to:
cat /etc/passwd returns this:
and the actual folder user is:
However when I try to login, I get:
Mar 17 10:05:22 manager jk_chrootsh: abort, path /var/www/clients/client1/web6/./ is not owned by 5008
Checking who owns folder 'web6' I get this:
drwxr-xr-x 14 root root 4.0K Mar 17 09:43 web6
So, is there a way to jail a ssh user to the web folder?