Make all directories reinherrit ACLs

From: Evan Mann (emann@questinc.org)
Date: 07/22/02


From: Evan Mann <emann@questinc.org>
To: "'focus-ms@securityfocus.com'" <focus-ms@securityfocus.com>
Date: Mon, 22 Jul 2002 10:54:24 -0400

Is there an application/script/some other way to select an entire drive or
directory and have it reset ACLs on all subfolders with the appropriate
inherrit permissions as currently set on each root folder?

Ex: If C:\folder1\subfolder1 is set to inherrit but C:\folder1\subfolder2
is not, the script/util/etc. would see that subfolder1 is flagged inherrit
and re-ACL all the files in subfolder1, but it would not touch subfolder2
because it is not set inherrit.

Furthermore, if C:\folder1\subfolder2\subsubfolder3 had inherrit permission,
it would flag subsubfolder3 and re-ACL all the files in that folder
appropriately.

Basically looking for something like this because, as we all know, when you
move files around on the same drive, the permissions do not inherrit from
folder to folder, as they would with a copy/paste, and I'm looking for a way
to make sure all my subfolders/files are ACL'd corretly, w/o having to go
through them all manually (hopefully!)

Thanks!

Evan