Proper setup for IIS7.5 machine account for anonymous Web site access

感情迁移 提交于 2019-12-23 18:53:34

问题


Using IIS 7.5, IIS_IUSRS is supposed to be the account to use. I get '401 - Unauthorized: Access is denied due to invalid credentials' error. If I add an EVERYONE account with Read, it works. But rather not have Everyone account. Any idea why IIS_IUSRS does not work? It has Read access. Anonymous Access=enabled. Specific User=IUSR

As a side, on the Basic Settings... for the site, Test Settings button says 'ok-on Authenticate' but Authorization 'cannot verify access to path'.


回答1:


In IIS 7.5 this has changed from being an IIS_IUSRS account to being a user under the IIS AppPools top level windows group

if you create an application pool called

www.mysite.com

then the sites default created user account that it runs as becomes

IIS AppPools\www.mysite.com

Check the following Microsoft Doc under "Securing Resources" to see more

http://learn.iis.net/page.aspx/624/application-pool-identities/




回答2:


Under the 'Securing Resources' section listed here:

  1. Open Windows Explorer.
  2. Select a file or directory.
  3. Right click the file and select "Properties"
  4. Select the "Security" tab Click the "Edit" and then "Add" button
  5. Click the "Locations" button and make sure you select your machine. Enter "IIS AppPool\DefaultAppPool" in the "Enter the object names to select:" text box.
  6. Click the "Check Names" button and click "OK".

Substitute DefaultAppPool with the name of the application pool you created/used when adding your site to IIS. This IIS AppPool (not IIS AppPools as of iis 7.5.7600 on Windows 7 pro) group is a group of virtual accounts that you will not see when performing a normal account search on your local machine or via a directory service.



来源:https://stackoverflow.com/questions/2120525/proper-setup-for-iis7-5-machine-account-for-anonymous-web-site-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!