Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Subject says it all really,

Thinking on security terms, I want to give each site on my server its own user account, so that they can't access each other's data. I also want to use integrated authentication for sql so i dont have any passwords knocking about in connection strings.

Is it a bad idea to use the same account for the app pool identity and the anon user account for iis (im interested in answers for both v6 and 7)?

Edit: ive seen this post describing how IIS7 allows you to automatically use the same account, but the question of whether its a good idea or not remains ;)

If so, why?

Thanks

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The app pool account is used to access resources on behalf of the webserver, before authentication (even anonymous). That's how IIS reads things like the web.config, as the app pool user.

Once authenticated, if the anon account and the app pool account are the same, the anonymous user can read web.config. IIS won't serve it, but the user can read it.

So, is it a bad idea to run in that configuration? No, and as you noted, IIS7 will let you do it by default. However, it is a better idea to run them with discrete accounts, because they are separate concerns.

In my real-world experience, using the same account for both is just fine. If someone wants the extra hassle associated with the better security, then I choose the separate account option.

HTH

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.