Hello,
I want to setup ssh chroot so that users cannot access all the root directories of Freenas (bin, var, etc...) when they connect via SFTP.
I followed these instructions http://doc.freenas.org/index.php/SSH about "Chrooting SFTP users" but it doesn't work, as they are still able to navigate up to the root of system.
I've read that all the directories of the user home directory path must be only root-owned, and I've seen that instead my /mnt folder is owned by the root user and a "1002" group, which I don't know what it is. I changed that 1002 to "wheel" but the problem still occurs, furthermore, after rebooting Freenas the group of /mnt is changed back to "1002". I don't know if I messed up something with permissions in the past or if I just have to configure something.
Could anybody help me to solve this?
Thank you.
Roberto
I want to setup ssh chroot so that users cannot access all the root directories of Freenas (bin, var, etc...) when they connect via SFTP.
I followed these instructions http://doc.freenas.org/index.php/SSH about "Chrooting SFTP users" but it doesn't work, as they are still able to navigate up to the root of system.
I've read that all the directories of the user home directory path must be only root-owned, and I've seen that instead my /mnt folder is owned by the root user and a "1002" group, which I don't know what it is. I changed that 1002 to "wheel" but the problem still occurs, furthermore, after rebooting Freenas the group of /mnt is changed back to "1002". I don't know if I messed up something with permissions in the past or if I just have to configure something.
Could anybody help me to solve this?
Thank you.
Roberto