-5

Possible Duplicate:
Setting permissions for specific user and groups in Linux

I have put some users into a group and would like to know how I use chmod to change the access permissions for only the members of that group. Thank you.

user135880
  • 1
  • 1
  • 1
  • This may be of help - http://superuser.com/questions/144984/setting-permissions-for-specific-user-and-groups-in-linux – PeanutsMonkey May 23 '12 at 19:18
  • Are the files in that group? – mmmmmm May 23 '12 at 19:19
  • 5
    -1 there is no research effort shown here, a simple look at `chmod --help` or manpages would have solved the problem. a google search would've yielded thousands of results and then it has been asked a lot of times here on superuser before. – Baarn May 23 '12 at 19:31

1 Answers1

2
chmod g(+|-|=)<flags> [file ...]

Example:

chmod g+rw shared-file.txt
ReyCharles
  • 1,131
  • 8
  • 6
  • 1
    Doesn't that depend on whether the group has been given ownership of the file? – PeanutsMonkey May 23 '12 at 19:22
  • If a question has been answered elsewhere on the site, it is recommended that you flag it as a duplicate and not to respond with an answer. –  May 23 '12 at 19:55
  • PeanutsMonkey: Yes it does. Randolph: Noted, thanks. Should I delete my answer then? – ReyCharles May 23 '12 at 20:13
  • Don't delete your answer, it's good and fits the question. And until the question is not closed everone is free to answer it. – Baarn May 23 '12 at 20:15