简体   繁体   English

正确设置IIS7.5计算机帐户以进行匿名网站访问

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

Using IIS 7.5, IIS_IUSRS is supposed to be the account to use. 使用IIS 7.5,IIS_IUSRS应该是要使用的帐户。 I get '401 - Unauthorized: Access is denied due to invalid credentials' error. 我得到'401 - 未经授权:由于凭证无效而拒绝访问'错误。 If I add an EVERYONE account with Read, it works. 如果我使用Read添加EVERYONE帐户,则可以。 But rather not have Everyone account. 而不是拥有Everyone帐户。 Any idea why IIS_IUSRS does not work? 知道为什么IIS_IUSRS不起作用? It has Read access. 它具有读访问权限。 Anonymous Access=enabled. 匿名访问=已启用。 Specific User=IUSR 特定用户= 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'. 作为一方,在网站的基本设置...上,“测试设置”按钮显示“ok-on Authenticate”,但“授权”无法验证对路径的访问权限。

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 在IIS 7.5中,这已从IIS_IUSRS帐户更改为IIS AppPools顶级Windows组下的用户

if you create an application pool called 如果您创建一个名为的应用程序池

www.mysite.com www.mysite.com

then the sites default created user account that it runs as becomes 然后网站默认创建用户帐户,它运行成为

IIS AppPools\\www.mysite.com IIS AppPools \\ www.mysite.com

Check the following Microsoft Doc under "Securing Resources" to see more 在“保护资源”下查看以下Microsoft Doc以查看更多信息

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

Under the 'Securing Resources' section listed here : 此处列出的“确保资源”部分下:

  1. Open Windows Explorer. 打开Windows资源管理器
  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. 在“输入要选择的对象名称:”文本框中输入“ IIS AppPool \\ DefaultAppPool”。
  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. DefaultAppPool替换为在将站点添加到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. IIS AppPool (IIS不作为AppPools在Windows 7专业版IIS 7.5.7600)的组是一组在本地计算机上或通过目录服务进行正常的帐户搜索时,你不会看到虚拟账户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM