Ask a Question related to ASP.NET Security, Design and Development.
-
TM #1
<processModel>: Impersonation...?
In the "Implementing Impersonation in an ASP.NET Application at the
following URL: [url]http://support.microsoft.com/?kbid=306158[/url],
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
TM Guest
-
Impersonation
Can someone explain this to me I have a web app I am trying to deploy for the Intranet of our company. I want to use integrated windows so have... -
Machine.Config -- ProcessModel vs Impersonation
What is the difference between using a username and password in the processmodel section vs using one in impersonation in the machine.config file? ... -
machine.config <processModel> setting question
I'm having problems trying to do follow examples I've seen using the EventLog and Process classes. I'm getting security exceptions (access denied). ... -
server unavailable using username=machine instead of system in processmodel
In order to try to get my app more locked down, I made the username=machine. It works fine on my computer, but when I put it on my test box, it blew... -
ProcessModel and Identity
With Windows authentication, in web.config, I have impersonate=true. In machine.config, I have username="system" instead of "machine in... -
David Coe, MCP #2
RE: <processModel>: Impersonation...?
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 [url]http://www.codeproject.com/aspnet/Sec_Run_ASPNET_WP.asp[/url], which is a nicer alternative than what you are currently trying to accomplish.
David Coe, MCP Guest



Reply With Quote

