Select the product you need help with
HOW TO: Run Applications Not in the Context of the System Account in IISArticle ID: 319067 - View products that this article applies to. This article was previously published under Q319067 We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 7.0 running on Microsoft Windows Server 2008. IIS 7.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site: http://www.microsoft.com/technet/security/prodtech/IIS.mspx For more information about IIS 7.0, visit the following Microsoft Web site:
(http://www.microsoft.com/technet/security/prodtech/IIS.mspx)
http://www.iis.net/default.aspx?tabid=1
(http://www.iis.net/default.aspx?tabid=1)
On This PageSUMMARY
This step-by-step article explains how to run a process under another identity other than the SYSTEM account. Default InstallationBy default, on a computer that is running Windows NT 4.0 Server, or on a Windows NT 4.0 computer that has Internet Information Server 4.0 installed, Web sites are set to run in-process or under the SYSTEM account. You can set a Web site or virtual directory and its associated applications to run in separate memory space and, therefore, run under the IWAM_machine account.By default, on computers that run the following, Web sites are set to run in medium pooled or under the IWAM_machine account:
Security ContextProcesses are always executed in the context of an account. For example, Inetinfo.exe runs as a process that is launched by the SYSTEM account, therefore, Inetinfo.exe runs in the context of the SYSTEM account.The SYSTEM account is not a typical user account: it does not have network access, therefore, applications that are running as SYSTEM cannot access network resources. For additional information about security context, click the article number below to view the article in the Microsoft Knowledge Base: 248187 NOTE: It is possible to run the IIS services (Inetinfo.exe) to run as a specified user account, however, that is an unsupported configuration.
(http://support.microsoft.com/kb/248187/EN-US/
)
HOWTO: Impersonate a User from Active Server Pages
For the application to access resources from a remote server, you can configure your Web site or application to run out-of-process and configure that process to run under a domain user account (by default, it is run under the IWAM_machine account context). Therefore, you can assign the appropriate NTFS file system permissions for that domain account to the remote server. Configure and Run Out-of-ProcessTo configure an application to run out-of-process and then set that process to run under the identify of another account, follow the appropriate steps for your system:Internet Information Services 5.0 and 5.1
Internet Information Services 4.0
REFERENCES
For more information, see the following books:
207671
(http://support.microsoft.com/kb/207671/EN-US/
)
HOW TO: Access Network Files from IIS Applications
248187
(http://support.microsoft.com/kb/248187/EN-US/
)
HOWTO: Impersonate a User from Active Server Pages
277329
(http://support.microsoft.com/kb/277329/EN-US/
)
Cannot Access Network Resources in Application_OnEnd or Session_OnEnd Events
Properties | Article Translations |


Back to the top








