<processModel>: Impersonation...?

T

TM

In the "Implementing Impersonation in an ASP.NET Application at the
following URL: http://support.microsoft.com/?kbid=306158,
MS suggested to "Change the account that the Aspnet_wp.exe process runs
under to the System account in the <processModel> configuration section of
the Machine.config file.".

1. As I understand, this will affect the entire machine ? If I use this
suggestion, how do I configure other sites within the same IIS box to run
the default ASPNET account ?

2. At present, I leave the Machine.Config as it is ("machine") so that other
sites within the same IIS box runs as a default (Using ASPNet). I then use
"Web.Config" per site to impersonate a specific Windows Account for each
site. Is this better solution in term of security ?

Thanks for your input,

Thomas
 
D

David Coe, MCP

As far as managing user and accessing resources, it is not the best idea to run ASP.NET as the system account. This means that anytime the worker process tries to access resources on the machine, it does so as the highliy priveledged SYSTEM account. There are a few ways around this, the best way is to try to change the account to ASPNET. Yes, this changes all of the sites on the box. At the same time, if impersonation is enabled in each application, ASP.NET will pass the user credentials down to the file system.

If you have problems running ASPNET_WP as the ASPNET account (such as I did), you may want to check out http://www.codeproject.com/aspnet/Sec_Run_ASPNET_WP.asp, which is a nicer alternative than what you are currently trying to accomplish.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

impersonation problem 1
Impersonation 0
<processModel> 4
IIS5/XP/aspnet_wp, changing user 25
Impersonation and Anonymous User 1
asp.net impersonation 1
Impersonation 1
Impersonation in code/Sharepoint 2

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top