How to configure FTP server to hide folders

It is better to hide tmp/usr/lib/var folders via the conf file (when accessing ftp). So that these folders will not be accessed by the users.

If it is proftpd, find out the proftpd.conf

Add the following to the proftpd.conf file:

<Directory ~>
HideGroup wheel
<Directory ~>
HideNoAccess yes

Enter the directory path near to “<Directory >”, like “<Directory /var/www/vhosts/domainName/httpdocs/folder>” .

After modification, restart the FTP.

About The Author

Scroll to Top