cant delete stuff on ftp?

Bobd314

New member
Joined
Sep 19, 2004
Messages
3
well, basically what I want to do is make it where people can upload, and download things, but not delete things. I have NO clue how I would go about doing this, and I didnt see it in the options. Well, is this even possible? If so, how?
 
You can do this by limiting what commands the user(s) in question can do either in the main proftpd config file or enabling the use of .ftpaccess files (might not be exactly what their called, but very similar to apaches .htaccess system). In your case you would probably not want to allow the DELE command for example.

This may help you: http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-Limit.html
 
Hi;
it's an old topic but I would like to write how I solved the same problem in case someone may need.
1)Create an ftp user with access to public_html user. (user1)
2)Create another user with access to public_html/upload (user2)
3)Create a file named .ftpaccess and write these into the file and save it to public_html/upload

Code:
  <Directory /home/"DAUSER"/domains/"DOMAIN"/public_html/upload/>
    <Limit DELE,RETR>
      AllowUser "USER1"
      DenyAll
    </Limit>
  </Directory>

By restricting DELE and RETR commands, user2 will only be able to upload files, but cant delete and download them.
 
well, he can download from browser cause you are in public_html, you would need a .htaccess too for stop download from browser aswell or point ftp not to public_html (example. /home/USER/DOMAIN/ftp/upload


And BTW, thanks for sharing this :) Always appreciated.

Regards
 
Back
Top