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.
You're probably looking for chown
or chgrp
First thing to do is:
chown -R <user>:devs docs
then:
chmod -R 070 docs
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:
chmod -R 770 docs
You probably have umask set to 0022. Do:
umask 0002
chmod -R g+rwx
umask 0022
That should work
umask
affects file creation. You don't need to change it in order to be able to chmod
a file.
Apr 29, 2010 at 7:30