• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Hiding Directories

D

DARF@

Guest
Is there a way in Plesk to hide all the directories with the exception of httpdocs from users logging in via ftp?

or set it up that when they login via ftp they go straight into the httpdocs and cant go up a level.

Thanks
 
Around line 50 in /etc/proftpd.conf change:

<Directory /var/www/vhosts>
GroupOwner psacln
</Directory>

To:

<Directory /var/www/vhosts>
GroupOwner psacln
HideNoAccess On
HideUser root
</Directory>

This will hide the directories such as /etc, /var, etc.
 
Back
Top