cPanel, I also wish that my clients using sftp would not have the ability to go beyond there home directory. Yes, the can't make changes, but they sure can download the files like /etc/passwd, config files to see which ports are being used, and others. This is not an easy thing for any server admin to swallow.
As to your statement that
has been a function of *nix systems for decades
Should not be your only answer. I would hope that after decades we would fine a better solution.
Anyways, I think there is.
Jailkit
I have used ISPConfig before with Jailkit which does exactly that. When creating the user it adds some info to there home directory.
Code:
user:x:5001:5001::/var/www/clients/client0/web1/./home/user:/usr/sbin/jk_chrootsh
This allows me to login with sftp but I cannot see or change directories beyond "/var/www/clients/client0/web1/" instead it just shows as "/" as if that is all there is to my account.
So instead of seeing this
Code:
/var/www/clients/client0/web1/
/var/www/clients/client0/web1/public_html
/var/www/clients/client0/web1/public_html/index.html
I see this
Code:
/
/public_html
/public_html/index.html
I hope this helps and maybe we can have this feature in the future.
Thanks