IIS configuration 401 Error Perfect solution

Source: Internet
Author: User
Tags anonymous iis ntfs permissions
iis| Error | Resolution 1, error number 401.1

Symptom (s): HTTP error 401.1-Unauthorized: Access denied due to invalid credentials.

Analysis:

Because the user is using anonymous access to the account (the default is the IUSR_ machine name) is disabled, or does not have access to the computer, will cause users inaccessible.

Solution:

(1) To see if the anonymous account for site security settings in IIS Manager is disabled, and if so, try to enable it in the following ways:

Control Panel-> Management tools-> Computer Management-> Local Users and groups, enable IUSR_ machine name account. If it is not resolved, proceed to the next step.

(2) View the default anonymous access account for the site in IIS Manager or the group to which it belongs, in the local security policy, if there is no attempt to grant permissions with the following steps:

Start-> program-> Administrative Tools-> Local Security Policy-> security Policy-> Local policy-> User rights Assignment, double-click "Access this computer from the network" to add the IIS default user or the group to which it belongs.

Note: The general custom IIS default anonymous access account belongs to the group, and for security, there are no special needs, please follow this rule.

2, error number 401.2

Symptom (s): HTTP error 401.2-Unauthorized: Access was denied due to server configuration.

Reason: Anonymous authentication was turned off

Solution:

Run inetmgr, open the Site Properties-> Directory Security-> authentication and access control-> Select Enable Anonymous access, enter a username, or click "Browse" to select a legitimate user, and then confirm the password two times.

3, error number: 401.3

Symptom (s): HTTP error 401.3-Unauthorized: Access because the ACL is denied to the requested resource's settings.

Reason: IIS anonymous users generally belong to the Guests group, and we generally put the site's hard drive to the Administrators group, at this time, in accordance with the principle of inheritance, the site folder only members of the Administrators group can access, Insufficient NTFS permissions to access the file by IIS anonymous users, causing the page to be inaccessible.

Solution:

Permission to access a Web site folder to an IIS anonymous user by entering the security options for the folder, adding IIS anonymous users, and giving them the appropriate permissions, generally read and write.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.