30. September 2011 16:36
This is going to be a quick post. I am starting to mess around with Umbraco and seeing that it could be very useful in certain situations. Anyway, this post is literally showing you the batch file I used to set permissions on folders. I gathered all of this from a few posts, as each one was slightly different in my eyes. So I figured, I might as well add another one out there for those that may be having problems.
I installed 5 different Umbraco sites (version 4.7.1) locally and they all ran under the same Application Pool in IIS. This was done on Window 7 Ultimate (64-bit).
The structure looks like this:
C:\inetpub\wwwroot\umbracodev
C:\inetpub\wwwroot\umbracoblog
Etc….
First thing I did was create the batch file below:
icacls app_code /grant "IIS APPPOOL\umbracodev":(OI)(CI)RX
icacls app_browsers /grant "IIS APPPOOL\umbracodev":(OI)(CI)RX
icacls app_data /grant "IIS APPPOOL\umbracodev":(OI)(CI)M
icacls bin /grant "IIS APPPOOL\umbracodev":(OI)(CI)M
icacls config /grant "IIS APPPOOL\umbracodev":(OI)(CI)M
icacls css /grant "IIS APPPOOL\umbracodev":(OI)(CI)M
icacls data /grant "IIS APPPOOL\umbracodev":(OI)(CI)M
icacls masterpages /grant "IIS APPPOOL\umbracodev":(OI)(CI)M
icacls macroscripts /grant "IIS APPPOOL\umbracodev":(OI)(CI)M
icacls media /grant "IIS APPPOOL\umbracodev":(OI)(CI)M
icacls python /grant "IIS APPPOOL\umbracodev":(OI)(CI)M
icacls scripts /grant "IIS APPPOOL\umbracodev":(OI)(CI)M
icacls umbraco /grant "IIS APPPOOL\umbracodev":(OI)(CI)M
icacls usercontrols /grant "IIS APPPOOL\umbracodev":(OI)(CI)M
icacls xslt /grant "IIS APPPOOL\umbracodev":(OI)(CI)M
icacls web.config /grant "IIS APPPOOL\umbracodev":(OI)(CI)M
icacls web.config /grant "IIS APPPOOL\umbracodev":M
Next I copied this file into each root of each site (c:\inetpub\wwwroot\umbracodev\UmbracoPermission.bat)
Then I went into each site and right clicked the bat file -> Run as Administrator
Then you should see something like this from your output
This worked for me, and I hope it works for you. Now I can get started on working with this CMS!
Here are some links I referenced when doing this:
http://our.umbraco.org/wiki/install-and-setup/set-umbraco-folder-permissions-from-command-line
http://our.umbraco.org/wiki/install-and-setup/how-to-install-umbraco-on-windows-server-2008
http://blog.mattbrailsford.com/2010/08/01/adding-a-windows-context-menu-item-to-set-umbraco-folder-permissions/
ae431355-2ec1-4909-a296-bc0fdd325f7b|1|5.0
Tags:
Umbraco