<processModel>: Impersonation...?

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default <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

  2. Similar Questions and Discussions

    1. 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...
    2. 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? ...
    3. 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). ...
    4. 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...
    5. ProcessModel and Identity
      With Windows authentication, in web.config, I have impersonate=true. In machine.config, I have username="system" instead of "machine in...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139