I have a very simple use case, but somehow it's not working.

I have a user deploy who belongs to www-data group.

When I try to chmod 777 a file, which looks like below, I get a permission error.

www-data www-data   31 Jul 26 09:46 f1f839b7e0e635d46129a4c4073e76a9

How come I can't change permission when deploy belongs to the same group?

How can I allow deploy to chmod the file?


On Unix systems, chmod is only available to root and the file's owner, regardless of any permissions (neither the file itself, nor the parent directory). You cannot change this.


Does www-data group have permissions to change chmod the file? Use ls -la to list all the permissions on that file.

  • Yes, I believe so. -rwxrwxrwx 1 www-data www-data 31 Jul 26 09:46 f1f839b7e0e635d46129a4c4073e76a9 – user45326 Jul 26 '14 at 14:02
  • What's the exact error you are getting? – Benjamin B Jul 26 '14 at 14:05
  • This answer should really have been a comment. ANyway, @user45326, isn't -rwxrwxrwx already 777? – Steve Jul 26 '14 at 14:08
  • @BenjaminB // chmod: changing permissions of ‘f1f839b7e0e635d46129a4c4073e76a9’: Operation not permitted – user45326 Jul 26 '14 at 14:18
  • @Steve // Yup, that's exactly my problem. – user45326 Jul 26 '14 at 14:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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