
How to Use ACLs and Groups to Share Files Safely Fast
Share files between users on Linux with groups, the setgid directory and ACLs: default ACLs for new files, the mask, getfacl and common pitfalls.
Tag
5 posts

Share files between users on Linux with groups, the setgid directory and ACLs: default ACLs for new files, the mask, getfacl and common pitfalls.

Lock down file permissions for SSH keys, .env files and config: correct modes for common files, audit with find and stat, umask, and fix a whole tree safely.

Linux file permissions explained: read, write and execute bits, octal and symbolic chmod, owners and groups, umask, and the setuid, setgid and sticky bits.

Use Linux ACLs with setfacl and getfacl to give one user or group access to a file, set default ACLs for new files, and understand the mask and the plus sign.

Learn what setuid, setgid and the sticky bit do on Linux, how to read them in ls output, set them with chmod, and why stray setuid files are a risk.