Difference between revisions of "GNU Linux/Permissions/POSIX ACLs"

From WhyAskWhy.org Wiki
Jump to: navigation, search
m (Added example from Red Hat documentation - removing ACL for user)
m (Added additional references, broke into sections)
Line 27: Line 27:
  
 
== References ==
 
== References ==
 +
 +
=== Directly used ===
  
 
<references>
 
<references>
Line 34: Line 36:
 
</references>
 
</references>
  
 +
=== Queued up ===
  
 
* https://help.ubuntu.com/community/FilePermissionsACLs
 
* https://help.ubuntu.com/community/FilePermissionsACLs
Line 46: Line 49:
 
* http://www.computerhope.com/unix/usetfacl.htm
 
* http://www.computerhope.com/unix/usetfacl.htm
 
* http://kmaiti.blogspot.com/2011/09/acl-and-mask-in-linux.html
 
* http://kmaiti.blogspot.com/2011/09/acl-and-mask-in-linux.html
 
+
* https://doc.opensuse.org/documentation/html/openSUSE_121/opensuse-security/cha.security.acls.html
 +
* http://www.debianhelp.co.uk/acl.htm
 +
* http://users.suse.com/~agruen/acl/linux-acls/online/
 +
* https://publib.boulder.ibm.com/tividd/td/TSMC/GC32-0789-04/en_US/HTML/ans5000090.htm
  
 
* https://docs.google.com/document/d/1-US07DZV7eoam1P8ZrTM7UgZF5DQs0Q8NNBAXVAem_Y/edit
 
* https://docs.google.com/document/d/1-US07DZV7eoam1P8ZrTM7UgZF5DQs0Q8NNBAXVAem_Y/edit

Revision as of 17:40, 27 February 2015


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

Directly used

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

Queued up