Web Hosting Talk







View Full Version : HOWTO: Preventing Secondary FTP Users From Deleting Files In A Certain Folder.


Joseph_M
12-26-2004, 09:34 AM
Hey,

In order to do this, you must
- Be using ProFTPd.
- Have a virtual FTP host setup for the site, or it should be on its own IP.

Open up the file /etc/proftpd.conf for editing.

Put these lines in your ProFTPd config file, under the relevant virtual host settings.

  <Directory /path/to/folder/>
    <Limit DELE MKD RMD XMKD XRMD>
      DenyAll
      Allow usrname
    </Limit>

This will deny all users with the exception of "usrname" the ability to make, or remote directories, or to delete files in the directory "/path/to/folder/".

Hope this helps!  Any further questions and I'll answer them in this thread, please do not PM me.

Joe

 

Blueheaven
02-17-2005, 12:43 PM
<Directory /path/to/folder/>
<Limit DELE MKD RMD XMKD XRMD>
DenyAll
Allow usrname
</Limit>

Nice but where can i find a Howto for this

- Have a virtual FTP host setup for the site, or it should be on its own IP.

apollo
03-08-2005, 05:41 AM
check out this

http://www.proftpd.org/docs/example-conf.html