System Grab Bag

View all TLDR pages from Linux (or from all pages)

setfacl

Set file access control lists (ACL). More information: https://manned.org/setfacl.
  • Modify ACL of a file for user with read and write access:
    setfacl -m u:{{username}}:rw {{file}}
  • Modify default ACL of a file for all users:
    setfacl -d -m u::rw {{file}}
  • Remove ACL of a file for a user:
    setfacl -x u:{{username}} {{file}}
  • Remove all ACL entries of a file:
    setfacl -b {{file}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.