windows IIS - 您无权查看此页面错误消息
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5021479/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
IIS - You are not authorized to view this page error message
提问by tcarter2005
I am trying to setup IIS to allow anonymous access via the "IUSR_" account. I've set the password to that account in Computer Management. I've given that account permissions to the physical folder and child folders that the website is being ran on.
我正在尝试设置 IIS 以允许通过“IUSR_”帐户进行匿名访问。我已经在计算机管理中为该帐户设置了密码。我已授予该帐户访问网站正在运行的物理文件夹和子文件夹的权限。
Enable anonymous access is checked in IIS for this site, and the Username/password are set correctly.
在 IIS 中为该站点选中启用匿名访问,并且用户名/密码设置正确。
However, when i go to view the site i get this error:
但是,当我去查看该站点时,出现此错误:
You are not authorized to view this page HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.
您无权查看此页面 HTTP 错误 401.1 - 未经授权:由于凭据无效,访问被拒绝。
What could be causing this? I thought maybe the Appplication Pool, but that seems to be setup correctly using the predefined "Network Service" account.
什么可能导致这种情况?我想也许是应用程序池,但这似乎是使用预定义的“网络服务”帐户正确设置的。
Update: If i change the anonymous access user to the administrator account, then everything works. But, ultimately, i cant have the site go live like that.
更新:如果我将匿名访问用户更改为管理员帐户,则一切正常。但是,最终,我不能让网站像那样上线。
Update 2: Fixed! This might not pertain to alot of people here, but it was a Local Security Setting. I had removed IUSR from "Access this computer from the network" per some security rules a few weeks back.
更新 2:固定!这可能不适合这里的很多人,但这是一个本地安全设置。几周前,我根据一些安全规则从“从网络访问这台计算机”中删除了 IUSR。
采纳答案by tcarter2005
I reset the password back to the default password by following this link to Microsoft's KB article.
我通过点击 Microsoft 知识库文章 的链接将密码重置回默认密码。
回答by akgupta
- Go to Control Panel
- Open Administrative Tools
- Then open Internet Information Services window
- Further click on the name of local computer (beneath IIS lable) which is on left column
- Expand the tree and look for your website's folder
- On right hand column, where your HTML file is listed, right click and choose open.
- This html file will open in your browser.
- Then try to open the same page by choosing "browse" option. Most probably, it will show you the error "You are not authorised to view this page."
- To fix this, right click again on the html file and this time choose All tasks > permission wizard...
- Just click next, next and finally finish this wizard. It will automatically set the admin permissions and other security settings at ease. Hope, this will resolve the issue as it did in my case.
- 进入控制面板
- 打开管理工具
- 然后打开 Internet 信息服务窗口
- 进一步单击左栏中的本地计算机名称(在 IIS 标签下方)
- 展开树并查找您网站的文件夹
- 在列出您的 HTML 文件的右侧列中,右键单击并选择打开。
- 此 html 文件将在您的浏览器中打开。
- 然后尝试通过选择“浏览”选项打开同一页面。最有可能的是,它会显示错误“您无权查看此页面”。
- 要解决此问题,请再次右键单击 html 文件,这次选择所有任务 > 权限向导...
- 只需单击下一步,下一步,最后完成此向导。它将自动轻松设置管理员权限和其他安全设置。希望,这将解决问题,就像在我的情况下一样。
回答by Tridep Lal
- Go to IIS manager
- Select the service which is not working (computername)
- Right click it and select properties
- Select directory security
- Select the Directory Security tab, Click the Edit button of Authentication and access control. A popup will appear
- Here you can see the username and the password, and change them
- 转到 IIS 管理器
- 选择不工作的服务(计算机名)
- 右键单击它并选择属性
- 选择目录安全
- 选择目录安全选项卡,单击身份验证和访问控制的编辑按钮。会出现一个弹窗
- 在这里你可以看到用户名和密码,并更改它们
回答by smartcaveman
It sounds like you set up the site right. Is it possible that you have made a mistake with which site you configured and the address you are attempting to access?
听起来您正确设置了站点。您是否可能在配置的站点和尝试访问的地址上犯了错误?
回答by Lex Li
Congrats as you found the cause. Simply share with you a critical KB on the permissions and user rights,
恭喜你找到原因了。只需与您分享有关权限和用户权限的关键知识库,