icacls, Network Service, and setting ACLs on Windows Server 2008
Posted
by
Ted
on Server Fault
See other posts from Server Fault
or by Ted
Published on 2009-09-22T17:54:36Z
Indexed on
2012/10/22
5:05 UTC
Read the original article
Hit count: 262
windows-server-2008
|acl
Setting ACLs on Windows Server 2008 via the command line is giving me some problems. As per http://web2.minasi.com/forum/topic.asp?TOPIC%5FID=26907 I've tried all sorts of variations:
C:\Windows\system32>icacls "D:\Websites\site.com\Web\bin*" /grant 'NT A uthority\NETWORK SERVICE: (OI) (CI)M'
C:\Windows\system32>icacls "D:\Websites\site.com\Web\bin*" /grant "NETWORK SERVICE": (OI) (CI)M
And all variations in between. However, each try leads to i.e. "Invalid parameter "'NETWORK'"" depending on the variation above.
As per http://technet.microsoft.com/en-us/library/cc753525%28WS.10%29.aspx (see in comments), it appears that others have experienced the same issue where the same command works on Windows 7/Vista/etc., but not on Windows Server 2008.
What's the best way to apply permissions to Network Service account on a directory and/or files via the command line in Windows Server 2008? Especially as there's no way to do multiple file permissions at once via the GUI (see http://serverfault.com/questions/30991/windows-server-2008-change-security-settings-for-multiple-files-at-once).
© Server Fault or respective owner