I am setting up an FTP server and initially jailed all users in their home directory by using:

DefaultRoot ~

This behaviour causes the users to see only the contents of their home directories and nothing above it. For ex : When using a client such as filezilla and user as testuser, the testuser directory shows up as


However I want to see if theres any way to allow users to 'see' the directories above it but not allowing them to list its contents, creating, deleting any files or directories . So using filezilla for testuser would be like:


The only reason being is that currently we have automated pipelines that use the full path to get files i.e. /home/testuser/dir/file.txt which fails on my current config since users cannot see anything above their home directory.

Any help will be greatly appreciated

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.