GNU Linux/Permissions/POSIX ACLs
This page will record my efforts to learn how to use POSIX ACLs. I'm familiar with ACLs used on Windows systems and to a lesser extent Mac OS X (GUI-only), but this is my first foray into POSIX ACLs.
setfacl -d -m group:rwx /path/to/your/dir
It appears to be setting the
Default ACL for the
owning group to rwx (octal 777) for a specific directory. Presumably this means that inheritance would push those settings down to any newly created files/directories.
- Q: What about existing files?
- Q: What about existing directories?
mask entry further limits the permissions granted by
named group, and
owning group entries by defining which of the permissions in those entries are
effective and which are masked. 
- If permissions exist in one of the mentioned entries as well as the mask, they are effective.
- Permissions contained only in the mask or only in the actual entry are not effective--meaning the permissions are not granted.
- All permissions defined in the
owning groupentries are always effective.
Removing POSIX ACLs
To remove all the permissions for a user, groups, or others, use the following command :
setfacl -x ACL entry type file
For example, to remove all permissions from the user antony:
setfacl -x u:antony /mnt/gluster/data/test-file
- Documentation > Security Guide > Local Security > Chapter 9. Access Control Lists in Linux
- Support > Product Documentation > Red Hat Storage > 2.0 > Administration Guide > 9.5.3. Removing POSIX ACLs