How to remove delete permission for proftp?

ozgurerdogan

Verified User
Joined
Apr 20, 2008
Messages
343
For only one user, I need to remove delete permission. So user can only download , upload file bot must not delete any file or folders.

How can I do that?
 
Thank you very much. One more question please:

How can I hide/protect .ftpaccess file for that limited ftp user account (limited user has only DELE RMD commands)?
 
I haven't read ProFTPd documentation in a long time; have you tried to see if the .ftpaccess file is protected from viewing/changing by FTP?

Jeff
 
I haven't read ProFTPd documentation in a long time; have you tried to see if the .ftpaccess file is protected from viewing/changing by FTP?

Jeff

I tried that first but threats it as regular file.

Thanks to zEitEr. It is now immutable.
 
Thanks to Jeff, as he gave me a hint, and now I can suggest this solution:

I guess you could try to use PathDenyFilter

Code:
PathDenyFilter "\\.ftpaccess$"

Add it in /etc/proftpd.conf between

Code:
<Global>
and
Code:
</Global>

And nobody would even read its content via FTP/FTPS/SFTP. But it still will be possible to edit the file via Directadmin file manager and with PHP/Perl/Bash/etc scripts... so chattr is still the best way to protect the file from unauthorized modifications.

But in your case it might be useful to use PathDenyFilter
 
Back
Top