I am using a linux system and need to experiment with some permissions on a set of nested files and directories. I wonder if there is not some way to save the permissions for t
Install the ACL package first:
sudo apt-get install acl
Recursively store permissions and ownership to file:
getfacl -R yourDirectory > permissions.acl
Restore (relative to current path):
setfacl --restore=permissions.acl