Hiding folders to avoid deletion via FTP
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>
<Directory ~>
HideNoAccess yes
</Directory>
Enter the directory path near to “<Directory >”, like “<Directory /var/www/vhosts/domainName/httpdocs/folder>”
After modification, restart the FTP.
Leave a Reply
You must be logged in to post a comment.