Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a setup similar to this:
e:\personal\username1\scans
e:\personal\username2\scans
e:\personal\username3\scans
e:\personal\username3\scans

Permissions are not inherited on these directories.

I have all permissions in place that I need, except that I need to add in username1 to have all rights except "full control" of "username1" and the "scans" directory below it.

I would like to use icacls.exe for this, can someone give me the correct syntax? If you can give me that much, I can do the rest of what I need.

share|improve this question
    
I'd personally use the powershell command get-acl. –  tony roth Jun 5 '12 at 20:04
add comment

2 Answers

cacls e:\personal\username1\scans /t /e /g Users:f

where Users is your user name for this particular folder.

share|improve this answer
add comment

Sure seems like icacls -? would have given this to you:

http://technet.microsoft.com/en-us/library/cc753525(v=WS.10).aspx

share|improve this answer
    
I asked for the syntax, as in an example because I looked at the /? for it, and cant get it to work correctly. –  Arrick Jun 5 '12 at 15:45
add comment

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.