Linux: Set Default Permissions with Directives
I would normally put this in an update for one of my cheatsheets, and will probably put a link to it for linux for this article. However I don't see a lot of people talk about this often and use these commands normally when I'm setting up a folder for a web application. I'll normally work in the /var/www folder but I attached the Gitlab CI to this but nginx needs read access.
sudo setfacl -d -m g::rwx EXAMPLE
Note: https://linux.die.net/man/1/setfacl
sudo setfacl -d -m g::rwx EXAMPLE
sudo getfacl EXAMPLE
Note: https://linux.die.net/man/1/setfacl