解决IIS 403 文件权限问题

本文介绍了解决IIS(Internet Information Services)中出现403 Forbidden: Access is denied错误的方法。通常当IIS尝试访问网站文件夹时权限不足会触发此错误。解决步骤包括:为指定的文件夹分配IIS_IUSRS安全权限。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

RESOLVING IIS 403 FORBIDDEN: ACCESS IS DENIED

You do not have permission to view this directory or page using the credentials that you supplied.

Every time IIS (Internet Information Services) is given a folder to access with information on a website, the 403 error page will appear if the right permissions are not given to the folder. It is a simple fix, but I don’t know why Microsoft hasn’t posted a proper answer on their KB, MSDN or their other support forums on this issue.

If you have just created an HTTP/HTTPS site on IIS 7/8 (may be true for other IIS installs as well), you need to assign IIS_IUSRS security permissions to your assigned web folder. To do that,

    • 1. Right click on the folder (the folder you assigned for web access in IIS)

    • 2. Choose “Properties” (or “Edit Permissions” if you right clicked while inside the IIS window)

IIS8_folder_right
    • 3. Go to “Security” tab

IIS8_folder_security
    • 4. In the top box, “Group or user names”, open “Edit…” (will take you to Permissions window)

IIS8_folder_add_per
    • 5. You will most likely cannot fine IIS_IUSRS in the list; open, “Add..”

    • 6. In the box at the very bottom, “Enter the object names to select (examples):” enter IIS_IUSRS

  • 7. Click OK and make sure in the Permissions window, you have allowed, Read & execute, List folder contents and Read

In a nutshell;
Right click -> Properties/Edit Permissions -> Security (TAB) -> Edit (under Group or user names) -> Add (IIS_IUSRS) -> OK (make sure the right permissions described in steps 7 are there)

转载于:https://www.cnblogs.com/ecba/p/8927185.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值