I want to reset the ACLs on a directory tree so that the root directory ACL replaces the ACLs on all files and folders below it. How best can I achieve this?
Edit: Is this question poorly worded? Can someone give me some feedback even if you don't know the answer?
You just need to find out the ACL by running an
ls -V
on the directory (in this example, I'm running it on theroot
directory from/
:You can then run a
chmod -R A=<<INSERT ACL HERE>> *
on the directory, where<<INSERT ACL HERE>>
is replaced with the acl as listed in thels
command.In this case, I'd
cd root
and then issuechmod -R A=owner@:rwxp--aARWcCos:-------:allow\ group@:------a-R-c--s:-------:allow\ everyone@:------a-R-c--s:-------:allow *
This usually works for me.
Occasionally, you might want to consider to assign different permissions to Dir and Files, for instance 2755 and 0644, in this case
OB