I like the enhancements and the granular control offered by using POSIX ACLS for FreeBSD. But it's a PITA to operate on ACLS, especially if the file system structure is complex. Since I wanted to make my life easyer, I wrote a script to help ACL manipulation. So, I no longer need to set each file's ACLS individually, if I need to grant a specific ACL to a directory and it's contents.
Here it is:
It is not possible to modify a 'directory default ACL' for a specific user or group, unless a previous 'default ACL' has been defined, referring to the owning user, group and other access permissions, similar to the traditional file permissions. This script does not handle this situation, requiring manual setting of the default ACL previously, using a command like:
If the default ACL do not exist and this script is executed, the following error will appear:
The directories created below a directory which already has a default ACL defined, will inherit the ACLs from the default ACL.
Scripts and commands
Scripts and commands >