User ASP.NET runs under
I'm a bit confused about how ASP.NET, what user it runs under? On iis 7.5 and on 6.0
A few of the user accounts that I'm not clear on ar开发者_高级运维e
- Network Service
- IUSR
- AppPool
Any clarification on the different users would be appreciated and security considerations/etc.
In summary:
- IIS 5.1 (Windows XP) - it's a local ASPNETaccount
- IIS 6 - by default, application pools run under the Network Serviceaccount which is a member ofIIS_WPGgroup
- IIS 7.0 - still Network Service
- IIS 7 SP2 / 7.5 - runs under an ephemeral thing called ApplicationPoolIdentitywhich maps to an accountIIS APPPOOL\ApplicationPool(e.g. IIS APPPOOL\DefaultAppPool). This account is a member ofIIS_IUSRSuser group
- ASP.NET Web Development Server (Cassini) - it's obviously your own account
And it's a good practice to create a custom low-privileged account to run your application especially on PROD environment or when you need to access the network from the application.
ASP.net by default runs underneath the IIS_IUSRS user group. So if you need to grant permission to allow your application to run, use that group.
 
         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论