Super User is a question and answer site for computer enthusiasts and power users. 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

My question looks similar to another thread: Linux directory permissions read write but not delete

Here, I want to create a directory where I can give the permissions like:

  • A user can create/upload any files.
  • A user can re-upload and overwrite the files.
  • A user cannot remove the file anymore.

I am on CentOS 5.5, basic user only. How can I do that? Or is there any third party software that can be installed to do this? Or, create a new process which will lock the permissions right after a new file is uploaded via ssh?

share|improve this question

migrated from Jan 9 '11 at 19:04

This question came from our site for professional and enthusiast programmers.

You cannot achieve that, even with ACLs, on Unix-derivative systems.

All else apart, if the user can overwrite the contents of the file, it is equivalent to delete (they can write nothing, leaving an empty file, or they can write junk).

share|improve this answer

You're probably not looking for this, but you can create a restricted api, which means writting code. This is the kind of restrictions a web application is able to provide.

share|improve this answer

You must log in to answer this question.