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

If I am not the file' owner or root, can I use chmod to change the file permission?

Assume I have group/write access to the file, e.g. 775

share|improve this question
Related on Unix & Linux: When does chmod fail? – Palec Feb 22 '15 at 22:56
up vote 11 down vote accepted

In a nutshell: No, you can't do that. Just for the plain reason that you could "steal" another user's file (related source):

Of course, only the owner of a file may use chmod to alter a file's permissions

There was another question on SO dealing with this here. The trick is to let chmod check if you're in the same group or have enough permissions in order to change that file's ownership and then run it as root.

share|improve this answer

Basic answer is no, unless you have specific rights through the group you and the file is in.

share|improve this answer
Tell us more. If we are here, it's because we're interested in those specific rights. – djjeck Mar 15 '15 at 21:26

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.