Linux - Get and Set Acl Utilities (Backup, Restore File Permissions)


getfacl displays:

  • the file name,
  • owner, the group,
  • and the Access Control List (ACL).

If a directory has a default ACL, getfacl also displays the default ACL.

The setacl utility sets Access Control Lists (ACLs) of files and directories.



getfacl -R /my/path > permissions.acl


setfacl --restore=permissions.acl

Documentation / Reference

Discover More
Linux - File/Folder Permissions - Access Control List ( ACL ) - Posix Model

In Linux, every object is a file. A directory or a folder is then also a file. Linux follows the POSIX permissions model. A permission is a combination between: an access right (read, write, execute)...

Share this page:
Follow us:
Task Runner