I'm doing the permissions in Windows Server 2008 R2. I'm learning to use a batch file to do this quickly, but it's not doing the right thing that I want. This is the code of the simple .bat file

icacls D:\Test2 /grant p5:(wa)

This is the display:


User p5 has no permissions except "special permissions", and in the advanced menu, it displays:


It's the right permission that I want, and I'm trying permissions like

icacls D:\Test2 /grant p5:(d,m)

It's just displayed like in picture 1.

My Question: i want when i set, permission gonna is "this folder, subfolders and files" and the permission outsite (like in pic 1) must be set. how i can do it?


Your question is a little hard to understand, but in the first case, you are granting user "p5" JUST the ability to write attributes. In the second case, you are granting rights JUST to delete or modify. In neither case are you granting read and/or file-scan rights, which would seem very odd to me. So you see the "special permissions".

I am not sure exactly what you want to get, but you should be giving read, file-scan, and then the "write"-related rights if you want the user to be able to delete files or change their attributes.

| improve this answer | |
  • i want when i set, permission when is "this folder, subfolders and files" and the permission outsite (like in pic 1) must be set. how i can do? – Lê Huy Oct 3 '13 at 6:05
  • As I stated above, it's a multi-step process. To have it not only affect the existing subfolders and files, but future ones, you must turn on "inheritance" first. Then apply the permissions. – Debra Oct 3 '13 at 6:12
  • if i turn "inheritance" on, the permission at farther folder and child folder gonna overlap and make the misstake. Can you tell me how i can do the thinh i ask above? – Lê Huy Oct 3 '13 at 8:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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