Linux – vsftpd: users can delete other users files

ftplinux

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.

Best 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