Where to start First steps track · 15 stages
Linux Labs

Extended permissions (ACL)

cheat sheet · Linux · acl https://lab.dimsanych.ru/en/wiki/acl/

Cheat sheet

  • getfacl file show ACL (+ in ls -l)
  • setfacl -m u:user:rw file grant a user
  • setfacl -m g:grp:rx dir grant a group
  • setfacl -d -m u:user:rw dir inheritance (default ACL)
  • setfacl -m m::rwx file raise the mask
  • setfacl -b file remove all ACL entries
  • getfacl -R dir > acl.bak save the tree's ACL to a file
  • setfacl --restore=acl.bak restore ACL from a file
Loading…