Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User ASP.NET runs under

Tags:

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 are

  • Network Service
  • IUSR
  • AppPool

Any clarification on the different users would be appreciated and security considerations/etc.

like image 214
Curtis White Avatar asked Feb 18 '11 19:02

Curtis White


People also ask

What user does ASP.NET run under?

On a Web server running Microsoft Windows Server 2003 and Internet Information Services (IIS) 6.0, the ASP.NET process runs in the application pool for the Web application. The application pool defines the identity that ASP.NET runs under (by default, the NETWORK SERVICE account).

What user does IIS run under?

IIS 6 - by default, application pools run under the Network Service account which is a member of IIS_WPG group.

What is ASP.NET user account?

ASP.net Machine Account. This account is created as an Administrator account and in some cases, it was reported that the account requires a password to log in. The user account is not deleted and this account is added as a second user account.

What is ASP.NET worker process?

What is Worker Process? "The "Process" which is responsible for processing Asp.net application request and sending back response to the client , is known as "Worker Process". All ASP.NET functionalities runs within the scope of this process."


2 Answers

In summary:

  • IIS 5.1 (Windows XP) - it's a local ASPNET account
  • IIS 6 - by default, application pools run under the Network Service account which is a member of IIS_WPG group
  • IIS 7.0 - still Network Service
  • IIS 7 SP2 / 7.5 - runs under an ephemeral thing called ApplicationPoolIdentity which maps to an account IIS APPPOOL\ApplicationPool (e.g. IIS APPPOOL\DefaultAppPool). This account is a member of IIS_IUSRS user 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.

like image 164
Denis Ivin Avatar answered Oct 17 '22 07:10

Denis Ivin


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.

like image 27
spaetzel Avatar answered Oct 17 '22 08:10

spaetzel