Changing NTFS permissions
I need to assign read permissions to c:\ and everything under it, for a domain user account.
I used XCACLS.exe to do it but when I go to take a look at the permissions a message comes up asking to reorder the permissions. This is due to some problem with inheriting permissions. Microsoft suggests using XCACLS.vbs for it.
I used XCACLS.vbs to do it but it takes several hours to do it.
Is there any other way of doing this using a script ?
Thanks
I used XCACLS.exe to do it but when I go to take a look at the permissions a message comes up asking to reorder the permissions. This is due to some problem with inheriting permissions. Microsoft suggests using XCACLS.vbs for it.
I used XCACLS.vbs to do it but it takes several hours to do it.
Is there any other way of doing this using a script ?
Thanks
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
schieb
18 years ago
what about:
setacl.exe -on "\\%COMPUTERNAME%\C$" -ot file -actn ace -ace "n:S-1-5-11;p:read;s:y;" -ace "n:S-1-5-11;p:list_folder;s:y;" -ace "n:S-1-5-11;p:read_ex;s:y;"
that SID is for "Authenticated users" on a domain. Takes about 2 or 3 minutes usually
I'm going to note one potential issue with this: http://techrepublic.com.com/2100-1009_11-5896041.html?tag=nl
setacl.exe -on "\\%COMPUTERNAME%\C$" -ot file -actn ace -ace "n:S-1-5-11;p:read;s:y;" -ace "n:S-1-5-11;p:list_folder;s:y;" -ace "n:S-1-5-11;p:read_ex;s:y;"
that SID is for "Authenticated users" on a domain. Takes about 2 or 3 minutes usually
I'm going to note one potential issue with this: http://techrepublic.com.com/2100-1009_11-5896041.html?tag=nl
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.