Web Hosting Talk







View Full Version : Hiding Plesk FTP Folders


nextevol unreal
12-12-2004, 04:56 AM
I am running Plesk 7.5.0 on redhat 9 and have proftp(default psa install). In all domain accounts, there are about 10-15 folders in the root dir of the ftp. Is there any way to set these folders to be hidden? so that only httpdocs, httpsdocs, and subdomains folders are able to be seen?

I was thinking about something like using the <Limit> function in proftpd.conf....yet i have no idea what i should put it as or what. Any ideas would help.

Thanks,
Tom

astellar
12-12-2004, 02:02 PM
There is a diffrent solution.

Run "vipw" command and change home directory for ftp user from

/home/httpd/vhosts/domain.name to /home/httpd/vhosts/domain.name/httpdocs, then make httpsdocs as softlink to httpdocs. This is it. Your FTP users connot access anything except webroot.

nextevol unreal
12-12-2004, 05:13 PM
Thanks for the reply, I know what you are saying, but I don't know how to do it. Is there any documentation on the web that you know of to aid me in this? I have googled vipw and its a password editor?? I don't know. Any information on how to perform this task would be helpful.

Thanks for the reply and info!
Tom

astellar
12-13-2004, 09:09 AM
vipw is exactly /etc/shadow editor. You may also use command:

usermod -d /home/httpd/vhosts/domain.name/httpdocs ftp_user_name

to change home dir without direct /etc/shadow modifications. You need root shell to run all these commands.