ProFTP VHost question

LawsHosting

Verified User
Joined
Sep 13, 2008
Messages
2,404
Location
London UK
Searched for this, nothing turned up.

Anyway, I'veprevented people from deleting folders (i.e public_html) via DA by the all_pre.sh....... Now, is there a way to prevent this within ProFTP?
eg.
<Directory /home/<user>/domains/<domain>/public_html>
Umask 022 022
AllowOverwrite on
<Limit DELE>
DenyAll
</Limit>
</Directory>

or, may not work, but:

<Directory /home/*/*/*/public_html>
Umask 022 022
AllowOverwrite on
<Limit DELE>
DenyAll
</Limit>
</Directory>

Would this work, or would this effect sub-folders too?

If this would work, where would I put it? proftpd.vhosts.conf?
 
Im sure there is a way to do it with proftpd. I would think it would be easier with chattr command though.

For proftpd you can look at the syntax for their configs on proftpd.org.

It would have to be set in /etc/proftpd.conf as well as in every virtual host in the vhosts config.
 
My understanding, using ProFTPd for over ten years, is that settings flow down; in other words if you have a setting in the main config, then unless you create an override setting in the vhost config, the original setting will still work.

Jeff
 
Back
Top