How can I change ACLs recursively using cacls.exe?
Posted
by
maaartinus
on Super User
See other posts from Super User
or by maaartinus
Published on 2011-05-04T18:41:24Z
Indexed on
2012/06/25
9:18 UTC
Read the original article
Hit count: 257
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?
© Super User or respective owner