How can I change ACLs recursively using cacls.exe?
- by maaartinus
I want to restrict the access for everything inside the work directory to me and the system only. I tried this with the following command:
cacls.exe work /t /p 'PIXLA09\Maaartin:f' 'NT AUTHORITY\SYSTEM':f
However it doesn't work at all. The following command should show only the two specified users but instead shows a very long list of permissions:
cacls.exe work/somedirectory
I tried to use /g instead of /p, too. Since I didn't use /e the permissions shouldn't get edited but replaced.
Any ideas what's wrong?