Table of Contents

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

About

getfacl displays:

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.

Steps

Backup

getfacl -R /my/path > permissions.acl

Restore

setfacl --restore=permissions.acl

Documentation / Reference