pure-ftpd: one readonly/non-deletable file in home directory

Posted by Bram Schoenmakers on Server Fault See other posts from Server Fault or by Bram Schoenmakers
Published on 2010-05-27T11:13:04Z Indexed on 2012/04/13 23:32 UTC
Read the original article Hit count: 304

Filed under:

Is there a way to have a file in the user's FTP home directory without the ability to modify/remove it from that directory over FTP?

So the user has write permissions on his own home folder, thus the ability to remove files. An exception should be made for a single file, which has the same filename and contents for each account.

The solution I'm thinking of right now to run a periodic script to check the presence of that file, and if not, put it back. But I wonder whether there's a better solution than this.

© Server Fault or respective owner

Related posts about pure-ftpd