GNU Linux/Permissions/POSIX ACLs

From WhyAskWhy.org Wiki
< GNU Linux‎ | Permissions
Revision as of 17:30, 26 February 2015 by Deoren (talk | contribs) (Added example from Red Hat documentation - removing ACL for user)

Jump to: navigation, search


Summary

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.

TODO

Explain this:

  • setfacl -d -m group:rwx /path/to/your/dir

Removing POSIX ACLs

To remove all the permissions for a user, groups, or others, use the following command [1]:

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

References

  1. Support > Product Documentation > Red Hat Storage > 2.0 > Administration Guide > 9.5.3. Removing POSIX ACLs