401 error occurred under IIS

  
        

1, Error: 401.1

Symptom: HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.

Analysis:

The account used by the user for anonymous access (the default is IUSR_machine name) is disabled, or there is no access to the computer, which will make the user inaccessible.

Solution:

1. Check if the anonymous account of the site security settings in IIS Manager is disabled. If yes, please try the following:

Control Panel ->Administrative Tools->Computer Management-> Local Users and Groups, enable the IUSR_ Machine Name Account. If it is not resolved, please continue to the next step.

2, in the local security policy, the default anonymous access account of the site in IIS Manager or the group to which it belongs has access to the server through the network, if you do not try to use the following steps to grant permissions:

Start -> Programs -> Administrative Tools -> Local Security Policy -> Security Policy -> Local Policies -> User Rights Assignment, double-click "Access this computer from the network", add IIS default User or group to which they belong.

Note: General Customization IIS default anonymous access accounts belong to the group. For security, there is no special need, please follow this rule.

2, error message: 401.2

Symptom: HTTP error 401.2 - Unauthorized: Access is denied due to server configuration.

Reason: Anonymous authentication is turned off

Solution:

Running inetmgr, opening site properties -> directory security -> authentication and access control -> Check "Enable anonymous access", enter the username, or click "Browse" to select a legitimate user and enter the password twice to confirm.

3, Error Tip: 401.3

Symptom: HTTP Error 401.3 - Unauthorized: Access is denied due to ACL settings for the requested resource.

Reason: IIS anonymous users generally belong to the Guests group, and we generally assign the permissions of the hard disk hosting the website to the administrators group. In this case, according to the inheritance principle, only the members of the administrators group can access the website folder. The NTFS permissions that caused the IIS anonymous user to access the file were insufficient, resulting in the page being inaccessible.

Solution:

Give IIS anonymous users access to the website folder. Method: Enter the security option of the folder, add IIS anonymous user, and give the corresponding permission, generally read, write.

Copyright © Windows knowledge All Rights Reserved