View Full Version : pure-ftpd - deny users to delete their files
April 7th, 2009, 18:26
If someone uploads files on pure-ftpd, is it possible that the files cannot be deleted from the ftp server by the user.
April 7th, 2009, 18:49
Add KeepAllFiles yes to pure-ftp.conf or add the -K switch.
April 7th, 2009, 19:03
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.
April 7th, 2009, 19:06
That's going to be tricky, not sure it's even possible. The KeepAllFiles option is for all users.
April 13th, 2009, 17:35
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.
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.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.