After sharing my wwwroot folder to the rest of my homegroup, I'm now getting the following error on my website:
Server Error
401 – Unauthorized: Access is denied
due to invalid credentials. You do not
have permission to view this directory
or page using the credentials that you
supplied.
My guess is that the folder permissions were mangled when I shared the wwwroot folder. I tried unsharing the folder and restarting IIS7 but I'm still getting the error. Does anyone know the default permissions needed for the wwwroot folder? IIS7 is configured with default settings (i.e., I haven't changed any IIS7 settings).
Any help is greatly appreciated.
Already Tried:
- Restarting IIS7
- Turning off and then back on anonymous authentication
- Unsharing the wwwroot folder
Best Answer
In order to reset the wwwroot permissions I went to another box and copied all the settings to the web server having issues.
Here's the steps to return to the default permissions for the wwwroot folder:
Once those permissions are verified, click the Add button and enter "IIS_IUSRS" for the object name and click OK. Select "Traverse folder / execute file", "List folder / read data", "Read attributes", "Read extended attributes", and "Read permissions" from the permissions list and click OK.
The wwwroot folder should now be set back to the out of the box permissions that come with IIS7.
This fixed the mentioned 401 Access Denied error I was encountering.