Scenario: I unpack a file into a temp directory.

Then I movve the file into a different directory. I want the file ACL to only include the perms stipulated in the new containing directory. How can I make that happen?

In UI, and in command line would be good. icacls?

link|improve this question

77% accept rate
feedback

1 Answer

up vote 1 down vote accepted

You could use the reset function of icacls:

ICACLS "C:\path\to\folder" /reset /T /C

then enable inheritance:

ICACLS "C:\path\to\folder" /inheritance:e /T /C
link|improve this answer
On Windows XP, I'm getting Invalid parameter "/inheritance:e", any idea? (I've installed icacls a couple of weeks ago, so I don't think upgrading would help). – maaartinus May 14 '11 at 15:53
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.