Granting directory permissions to a Website using “IIS APPPOOL”

Say you have a “logs” directory inside the folder for your website, and you want to grant permissions so that your .NET code can write to that folder, e.g. with log4net or the Enterprise Library Logging application block. You can, of course, grant permissions to “Users”, or “NETWORK SERVICE”, but it all feels a bit spolly.

You can instead grant permissions to the IIS App Pool. This is apparently possible in Windows 2003, but it requires command-line-fu. In Windows 2008 & onwards, it’s easy:

image

Yep – that’s three “P”s. Make sure you have the local machine selected as the location, and not the domain, and Bob’s your Monkhouse.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Granting directory permissions to a Website using “IIS APPPOOL”

  1. Mike says:

    Well 5 years later I would like to say thank you this help me with my permissions to get my error logging working

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s