Already execute" gpasswd -a " to assign a group administrator. The one of group owner put a file as read only.

But group administrator can't change the file by" chmod g+w files.txt".

Error message shown chmod: changing permissions of `files.txt': Operation not permitted

How to make the file has write permission in group?

  • Sorry, command is " gpasswd -A thomas_lin SW", SW is group name. – Thomas Lin Dec 11 '15 at 11:01
  • What do you mean by "group administrator"? gpasswd -a justs adds a user to a group. – fkraiem Dec 11 '15 at 12:03
  • If you meant gpasswd -A (upper case A) then I don't think it does what you think it does: a group administrator doesn't have any special rights over files owned by the group members - just over who belongs to the group. – steeldriver Dec 11 '15 at 12:07
  • The changes made in the /etc/group file take effect at login time. Did you logout and login? – waltinator Dec 11 '15 at 18:50
  • Yes, I did logout and login. But fail. By the way, I ask for administrator's help(root). He has right to modify file. – Thomas Lin Dec 14 '15 at 3:21

Your Answer

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

Browse other questions tagged or ask your own question.