vsftpd: users can delete other users files

kesrut asked:

I’m installed vsftpd ftp daemon. Virtual users shares same root directory. But user can delete other user files. How to disable this ? Any configuration setting? Permissions of uploaded file is 644.

Thanks.

My answer:


If you really need to have multiple users writing to the same directory, and don’t want them to be able to delete each other’s files, set the sticky bit on the directory. This is the same mode set on /tmp to restrict that directory in the same way.

chmod 1777 /var/ftp/freeforall

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.