sudo setfacl -R -m g:devs:rx /srv/shared

Category: Administration

sudo setfacl -R -m g:devs:rx /srv/shared

Apply a group ACL recursively

Adding -R makes setfacl walk every file and directory under /srv/shared, applying the g:devs:rx entry everywhere. This is the efficient way to open up a whole project tree to one group. Files created later do not inherit the entry unless the directory also carries a default ACL.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.