Linux Rights - SFTP Chrooted users shouldn't see folders
Is there a way to make users unable to see other user directories under the same chrooted directory?
Users are connecting to SFTP running sshd and are chrooted by the Match Group function.
Each user has their own folder underneath the directory 'testgroup' and they have rights only to their folder.
Match Group testgroup
The problem I have is that all users can see the other users directory. The other users cannot access/view any directory except their own, however, they can see the other folder titles.
Is there a way to change this to where when they are chrooted in this directory, that they can only see their own folder, and any 777 folder?
I know that I can change the ChrootDirectory to:
but then the user would not be able to get the public folder.