ACL provides an additional, more flexible permission mechanism for file systems. It is designed to assist with UNIX file permissions.
I use ACLs to enable file shares for groups of users that inherit common permissions/ownership. This allows all users equal access to all contents of a directory - good for FTP/File servers. (See chmod for more tools to modify permissions)
This is the acl
package. Install it using APT
apt install acl
Use the following command. This will set Group permissions to rwx
on all new, child directories.
NOTE: Files created within the ACL'd directory will NOT show Group permissions of rwx
, like the directories do. This is normal behavior. Files within a directory with an ACL will inherit the directories configuration.
setfacl -m "default:group::rwx" /var/shared-directory
getfacl /var/shared-directory