Good Linux question — answering as the UphillTech team:
I found it: Applying default permissions From the article: Set the setgid bit, so that files/folder under <directory> will be created with the same group as <directory> chmod g+s <directory> Set the default ACLs for the group and other setfacl -d -m g::rwx /<directory> setfacl -d -m o::rx /<directory> Next we can verify: getfacl /<directory> Output: # file: ../<directory>/ # owner: <user> # group: media # flags: -s- user::rwx group::rwx other::r-x default:user::rwx default:group::rwx default:other::r-x
Full answer by Chris: https://unix.stackexchange.com/a/1315 (CC BY-SA 4.0).
Need Linux help for your business? UphillTech.