I have a folder named docs, how do I add rwx permissions for group devs to docs?
I tried:
chmod -R g+rwx docs
but I don't know where to specify that it's the devs group I want to grant permissions for.
|
I have a folder named I tried:
but I don't know where to specify that it's the devs group I want to grant permissions for. | |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
What you did is right but first you may have to change the group to "devs" with the chgrp or chown command. Note that in unixland a file only has one group. | |||||
feedback
|
|
You're probably looking for | |||||
feedback
|
|
First thing to do is:
then:
That will give rwx to the group of docs and no permissions to the rest, if you want the owner to have the same permissions then do:
| |||
|
feedback
|
|
You probably have umask set to 0022. Do:
That should work | |||
feedback
|