pure-ftpd - deny users to delete their files

Hello,

If someone uploads files on pure-ftpd, is it possible that the files cannot be deleted from the ftp server by the user.
 
Add KeepAllFiles yes to pure-ftp.conf or add the -K switch.
 
I would like to have only one user that can upload files without being able to delete them and all other users to be able to delete files they have uploaded already.
 
That's going to be tricky, not sure it's even possible. The KeepAllFiles option is for all users.
 
STICKY DIRECTORIES
A directory whose ‘sticky bit’ is set becomes an append‐only directory,
or, more accurately, a directory in which the deletion of files is
restricted. A file in a sticky directory may only be removed or renamed
by a user if the user has write permission for the directory and the user
is the owner of the file, the owner of the directory, or the super‐user.
(c) sticky(8)

Maybe needed effect can be achieved in combination with setuid mode on directory?
I had such configuration for some time, but only on anonymous ftp.
 
Back
Top