Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I would like to grant deletion rights for a file I created to all users and groups on a machine.

At the moment I have a specific user user_A that creates a file with permission 0666, but if another user user_B tries to delete that file Linux doesn't allow that and says no permission.

Which numeric value should I use?

share|improve this question
up vote 2 down vote accepted

In traditional Unix/Linux permissions, give that user write access to the directory containing the file. A person can delete any file in a directory to which they have write access.

To grant everybody permission to delete any file in a directory (and also to create files there)

chmod o+w directoryname

For finer grained controls use ACLs as described by RedHat, Ubuntu and others.

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.