I created an LDAP group rcars. I also created a directory rcars. How can I set permission so that only rcars group can read/write?
rcars directory will first need to be part of
rcars group (the folder's owner or root can perform this operation).
chgrp <groupName> -R <folderName>
chgrp rcars -R rcars
rcars group will need
rw permissions of the directory.
chmod g+rw <folderName>
chmod g+rw -R rcars
To remove others access:
chmod o-rw -R rcars
-Ris for recursive permission (all sub-directories and files in it).