Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 3 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
share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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