Having set up all the other parts of ISPC 3.0.3 I decided to check a ssh user. Jailkit was install as per the Perfect Ubuntu 10.10. I had to change the home path in the server control panel as it seemed to be wrong. Users are created and the shell changed to bash, however the user is not chroot to their home dir and can browse from the root. Bit of a show stopper at the moment. Any ideas. TT
Thats most likely the reason for the non working chroot. Do not edit the path manually or change a shell of the user manually. You should delete the ssh user and the website in ispconfig, wait a few minutes and create the website again and the ssh user. But do not change nay paths manually.
not made any command line changes, i change the jailkit chroot option in server config to /var/www/clients/client[client_id] as the previous default setting ( i think /home/[username] ) was landing the user in some spurious location with a blank folder. I have created a new user with the same result. Deleting the website seems a little drastic, sure i can tgz it but it's not a good solution if I have a large number of sites to fix. Cheers TT
This can not work, as jails are created per website and not per client. You mean the were landing in their home folder, which is of course empty by default. To fix your problem, please undo your path changes and delkete and recreate every website that you created with these wrong paths as the jail is created once for every webiste. So deleting a ssh user is not enough, this will not fix the jail.
I did that after initialy finding I was not chrooted. I will try again with a fresh user and site. but i think the result will be similar. what's the default path for the home? I did not take note of it. TT
The jailkit chroot home default is: /home/[username] be aware that this path is relative to the chrooted path and not relative to /