Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We are using glusterfs for our cloud storage needs. Since the partition is open to many servers, we would like to disable file deletion as we don't delete or overwrite any file.

Glusterfs does not have ACL, so I need to implement this solution outside of the glusterfs. Perhaps I can mount the disks read and write only (with disabling deletion), but could not find any solution. Setfacl etc. does not work on the partition.

How can we disable file deletion -at least- on the client machines?

share|improve this question

File deletion requires write access to the directory. Try disabling write access to the directory.

Warning: This will also prevent file creation. It is only appropriate for fully populated directories.

share|improve this answer

If you are using linux/unix server it is possible by setting below sticky bit to the folder.

chmod +t folder

This will allow any user to write in the directory and cannot delete the folder.


S.Ragavendra Ganesh

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.