Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jan 9 '11 at 19:04

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

add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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