|
 |
 |
 |
 |
Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms
of Use |
Trademarks
Article ID: 904056 - Last Review: December 3, 2007 - Revision: 1.2 You may receive an error message when you try to start a CGI program that is hosted on IIS 6Important This article contains information about editing the metabase. Before you edit the metabase, verify that you have a backup copy that you can restore if a problem occurs. For information about how to do this, see the "Configuration Backup/Restore" Help topic in Microsoft Management Console (MMC).
When you try to start a Common Gateway Interface (CGI) program that is hosted on Microsoft Internet Information Services (IIS) 6, you may receive an error message that is similar to one of the following: The configured user for the current application pool does not have enough privileges to run CGIs Http 403-Forbidden: Access is denied Note You receive the error message even though the application pool security account is a member of the IIS_WPG group. This problem may occur if the application pool security account does not have the "Adjust memory quotas for a process" user right or the "Replace a process level token" user right. To resolve this problem, use one of the following methods. Warning If you edit the metabase incorrectly, you can cause serious problems that may require you to reinstall any product that uses the metabase. Microsoft cannot guarantee that problems that result if you incorrectly edit the metabase can be solved. Edit the metabase at your own risk. Note Always back up the metabase before you edit it.
Method 1: Set the CreateProcessAsUser metabase setting to falseTo set the CreateProcessAsUser metabase setting to false, follow these steps: - Click Start, click Run, type cmd, and then click OK.
- At the command prompt, type cd drive:\Inetpub\adminscripts, and then press Enter.
Note In this step, drive is the hard disk where the Inetpub folder is located. - At the command prompt, type Cscript.exe Adsutil.vbs SET W3Svc/CreateProcessAsUser false, and then press Enter.
Method 2: Grant the required user right to the application pool security accountTo resolve this problem, grant the required user right to the application pool security account. To do this, use one of the following methods. Method 2a: Use the Domain Controller Security Policy toolIf the computer is a domain controller, follow these steps:
- Start the Domain Controller Security Policy tool.
For more information about how to start the Domain Controller Security Policy tool, click the following article number to view the article in the Microsoft Knowledge Base:
832214Â
(http://kbalertz.com/Feedback.aspx?kbNumber=832214/
)
"You may not have appropriate rights" error message when you try to open the Domain Security Policy console or the Domain Controller Security Policy console from the command prompt
- In the left pane, expand Local Policies, and then click User Rights Assignment.
- In the right pane, double-click the policy that you want.
- Click Add User or Group.
- Type the user name or the group name that is the security account for the application pool that you want, and then click OK.
Note
If you click Browse to add an account, you may have to click Object Types or Location to add the account that you want. - Click OK two times.
- Exit the Domain Controller Security Policy tool.
Method 2b: Use the Group Policy Object Editor
If the computer is a member of a domain, follow these steps: - Click Start, click Run, type gpedit.msc, and then click OK.
- Under Local Computer Policy, expand Computer Configuration, expand Windows Settings, expand Security Settings, and then expand Local Policies.
- In the left pane, click User Rights Assignment.
- In the right pane, double-click the policy that you want.
- Click Add User or Group.
- Type the user name or the group name that is the security account for the application pool that you want, and then click OK.
Note
If you click Browse to add an account, you may have to click Object Types or Location to add the account that you want. - Click OK two times.
- Exit the Group Policy Object Editor.
Method 2c: Use the Local Security Settings tool
If the computer is not a member of a domain, follow these steps: - Click Start, click Run, type secpol.msc, and then click OK.
- Under Security Settings, expand Local Policies.
- Click User Rights Assignment.
- In the right pane, double-click the policy that you want.
- Click Add User or Group.
- Type the user name or the group name that is the security account for the application pool that you want, and then click OK.
Note
If you click Browse to add an account, you may have to click Object Types or Location to add the account that you want. - Click OK two times.
- Exit the Local Security Settings tool.
This behavior is by design. In IIS 6, the authenticated user account is used to start CGI programs. If the Web site accepts anonymous users, CGI programs run by using the anonymous user account instead of the security account for the application pool. If the CreateProcessAsUser metabase property is set to false, the application pool security account is used to start the CGI program. The default security account for an application pool is the Network Service security account. The Network Service security account has the "Adjust memory quotas for a process" user right or the "Replace a process level token" user right. Additionally, the IWAM account for the computer and the Local Service accounts also have these user rights. If you change the application pool security account, the CGI program may not work as expected. For example, if you add a user to the IIS_WPG group, and this user does not have the "Adjust memory quotas for a process" user right or the "Replace a process level token" user right, the CGI program may not work as expected.
APPLIES TO- Microsoft Internet Information Services 6.0
| kbtshoot kbprb kbpermissions KB904056 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
|
 |
 |
 |
 |
 |
 |
 |
| |