Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make iCacls grant access at the folder level so it can be inherited?

Using the command:

iCACLS.exe \\server\serverroot\siteroot /grant:r domain\id:RX /T /C

I can grant access to every file within the site root folder, but the folder itself does not receive the access. The problem being any new file that gets added lacks the read access until the command is run again. What am I not understanding?

like image 904
codepoke Avatar asked May 19 '09 17:05

codepoke


People also ask

What is the icacls abbreviation that means that files created inside this folder will inherit this ace?

The '(OI)' shows that the other objects in this directory will inherit this ACE. The '(CI)' shows that other folders in this directory will again inherit this ACE. (This directory doesn't happen to have any, but if it did, it would automatically inherit the same ACEs).


1 Answers

The reason the folder itself does not receive the access is because I did not tell iCacls I wanted it to make the access inheritable. The command should be:

iCACLS.exe \\server\serverroot\siteroot /grant:r domain\id:(OI)(CI)(RX) /T /C

Does exactly what I need (and for predictable reasons. I like that.)

like image 84
codepoke Avatar answered Oct 12 '22 02:10

codepoke