Permission inheritance

  • Thread starter Thread starter Neil
  • Start date Start date
N

Neil

Hello,

Is there a way to "recurse" through a directory structure
setting the "Inherit permissions from parent" option on
each object using cacls or similar?

Thanks.
 
Neil said:
Is there a way to "recurse" through a directory structure
setting the "Inherit permissions from parent" option on
each object using cacls or similar?

Hi

SetACL should be able to do this.


SETACL (freeware) at
http://setacl.sourceforge.net/

SetACL can set permissions on:

Local or remote directories
Local or remote files
Local or remote printers
Local or remote registry keys
Local or remote Win32 services
Local or remote network shares
 
SetACL should be able to do this.

Torgeir is absolutely correct, but allow me to say that SetAcl.exe is not
for mere mortal administrators -- I am a command line user of the Nth
degree and it is difficult for me to use.

One trick with SetAcl is to get it to dump the current settings which can
give you a starting point to using it. (This works for the slightly less
intimidating
NetSh.exe as well but that is for network interface and service settings.)

You might consider just using a For...In...Do... loop to run one of the
other
(easier) programs, like Cacls.exe or XCacls.exe
 
Back
Top