Microsoft KB Archive/184300

= How to Run a Web Site as the User Who Created the Content =

Article ID: 184300

Article Last Modified on 6/23/2005

-

APPLIES TO


 * Microsoft Internet Information Server 4.0

-



This article was previously published under Q184300



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.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



SUMMARY
Microsoft Internet Information Server (IIS) version 4.0 allows a Web site to run in the context of the user who created the content, as in some versions of UNIX, through the use of the anonymous user account.



MORE INFORMATION
When a user accesses any resource in IIS, IIS can perform the action as the user performing the request or in the context of a nominated user account. To access the resource as the user performing the request, you must use Basic or Windows NT Challenge/Response authentication. To access a resource as a pre-defined user, you can turn off all authentication, use Anonymous Authentication, and choose a pre-defined Windows NT account to use as the Anonymous account.

Assume you have a directory containing content created by DOMAIN\USER and you always want this content, whether it is active content (ASP, components) or static content, to run in the context of this user. Perform the following procedure to change the anonymous account for that directory:


 * 1) Load the Microsoft Management Console administrator tool.
 * 2) Right-click on the Web server, virtual directory, or directory in question.
 * 3) Select Properties.
 * 4) Select Directory Security.
 * 5) Select Edit in the Anonymous Access and Authentication Control box.
 * 6) Make sure only Allow Anonymous Access is selected.
 * 7) Click Edit and type DOMAIN\USER or the user account to use.
 * 8) Make sure Enable Automatic Password Synchronization is enabled.
 * 9) Click OK to save the changes and exit each dialog box.

Any object executed within the scope of that virtual directory will now execute as DOMAIN\USER.

NOTE: The IIS log files can still log the IP address of the calling user.

Keywords: kbhowto KB184300

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.