• 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

Control which patches to be displayed?

W

woxcom

Guest
The "File Manager" or FTP is displaying the following folders/patch for all our domains:

bin
conf
error_docs
etc
lib
pd
statistics
subdomains
tmp
usr
var
web_users
anon_ftp
cgi-bin
httpdocs
httpsdocs
private

I would like to change so that it only display those I want my clients has access to: httpdocs, httpsdocs, cgi-bin, private, etc. How can I do this so that it effect on all domains and for all new domains we setup?

Thank you very much for your help.
 
Edit the /etc/proftpd.conf file. Look for:

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

And change to:

<Directory /var/www/vhosts>
GroupOwner psacln
HideNoAccess on
HideUser root
</Directory>
 
I perfer to use HideGroup instead of HideUser.

Code:
<Directory /home/httpd/vhosts>
GroupOwner      psacln
HideNoAccess    on
HideGroup       root
</Directory>

What you'll be left with is:

anon_ftp
cgi-bin
error_docs
httpdocs
httpsdocs
subdomains
web_users
 
No problem... :)

Using HideGroup you hide the private directory, but I feel it's a better tradeoff than hiding subdomains, webusers, etc.

Unfortunately all the other directories are still visible via the friggin File Manager.
 
Don't subdomains and webusers have separate logins anyway? (I don't really used them so I wouldn't know.) I would have thought that's why they're owned by root. I went with HideUser meself.

Yeah, it'd be nice if the file manager referenced proftpd.conf for this too. Shouldn't be too hard if they wrote the file manager themselves.

adam
 
They do have individual logins but it's nice to use the main account FTP login to manage all if need be. :)
 
Thank you very much for all your help!

I was, however, not able to find the directory: /var/www/vhosts, but only /home/httpd/vhosts? What version of plesk are you using (I use 7.5.3), maybe something has changed?

About the file manager... Well, I know it can be done, so that it only display what you want your clients to see (please check the plesk demo: http://plesk754.demo.sw-soft.com:8443) but the question is how? Any ideas?
 
/var/www/vhosts is the new default vhost location. (New installs of 7.5.4+)
 
NVarra, thank you :)

How about to hide those folders in the file manager as well - do you know how this can be done?
 
Sorry to bump this thread.

Is there a way to hide the folders owned by root from the File Manager.

They are hidden with FTP login as below but still visible under the File Manager.

Many thanks!

Dave
 
HideNoAccess would hide a file owned by apache when created running php as a DSO right? If so, that may just confuse people as to why they can see it in a browser, and in file manager, but not in ftp.
 
Back
Top