iis7如何配置iis7.5 写入权限限以上传文件

Unfortunately I don't have a whole lot of information on this.
I have a customer who has moved their site from an ancient system to IIS7 on Windows 2008 Server. Info about the error is below:
E:\wwwroot\sp\xxx\online_data.xls
Microsoft VBScript runtime error '800a0046'
Permission denied
/xxx/oat/exceldata.asp, line 52
49 response.write(server.mappath("online_data.xls"))
51 set fso = createobject("scripting.filesystemobject")
52 Set act = fso.CreateTextFile(server.mappath("online_data.xls"), true)
The only suggestion so far is to:
grant the application pool
(DefaultAppPool / Classic AppPool)’s
impersonated identity read and write
permission to the physical folder
which the asp page reside
Will look at this when I get access, but other suggestions would be appreciated.
解决方案 The provided answer is correct, but I needed a little more detail on how to accomplish it.
To make it really easy, follow the steps below. I was setting up an asp page counter on a sandbox system in our intranet.
Open Computer Management.
Drill down to the IIS server
Management
In the Connections pane, click on
Application Pools
In the Application Pools pane,
right-click on DefaultAppPool and
choose Advanced Settings. Look in
the Process Model section.
By default, the Identity property is
set to ApplicationPoolIdentity.
This is a built-in account.
If it's set to the default, then you
can use the built-in user
machinename\IUSR for your
permissions settings.
specify the machine name because
this is a virtualized server, YMMV.
If it's not set to the default, use
that username for your permissions
Cancel out of the dialog and return
to Windows Explorer, to the folder
where you need to add permission.
Right-click to get Permission
Set up machinename\IUSR or the
non-default username you determined
in steps 6/7 above. Grant
permissions as needed.
This helped:
本文地址: &
不幸的是,我没有一大堆的资料这一点。我谁也搬到他们的网站从一个古老的制度,IIS7的Windows 2008 Server上的客户。有关该错误信息是如下:错误:
E:\\ wwwroot的\\ SP \\ XXX \\ online_data.xlsMicrosoft VBScript运行时错误'800A0046“权限被拒绝 /xxx/oat/exceldata.asp 52行 code:
49的Response.Write(使用Server.Mappath(“online_data.xls”))5051集FSO = CREATEOBJECT(“Scripting.FileSystemObject的”)52集的行为= fso.CreateTextFile(使用Server.Mappath(“online_data.xls”),真) 唯一的建议到目前为止是:
授予应用程序池
(默认应用/经典的应用程序池)的
模拟的标识读写
许可的物理文件夹
其中ASP页驻留会看看这个,当我访问,但其他的建议将是AP preciated。解决方案 提供的答案是正确的,但我需要就如何完成它更详细一点。为了使它很容易,按照下面的步骤。我设置了一个沙盒系统上的ASP页计数器在我们的内联网。开启计算机管理。向下钻取到IIS服务器管理在连接窗格中,单击应用程序池在应用程序池窗格中,默认应用上右键点击选择高级设置。在看流程模型部分。默认情况下,身份属性设置为ApplicationPoolIdentity。这是一个内置帐户。如果把它设置为默认值,那么你可以使用内置的用户计算机名\\ IUSR您权限设置。我不得不指定计算机名称,因为这是一个虚拟化的服务器,情况因人而异。如果它没有设置为默认值,使用该用户名的您的权限设置。取消对话框并返回了Windows资源管理器,文件夹在这里你需要添加的权限。右键单击获得许可设置。设置了计算机名\\ IUSR或 你确定非默认的用户名 步骤6/7以上。格兰特 权限需要。这帮助:http://learn.iis.net/page.aspx/140/understanding-built-in-user-and-group-accounts-in-iis-7/
本文地址: &
扫一扫关注官方微信IIS7.0下文件写入无权限的解决办法
1. 在IIS Web站点上右键 --& 编辑权限
2. 在弹出的窗体上选择【安全】选项卡,如图:
3. 在安全选项卡中点击【编辑】按钮,弹出如图对话框:
4. 点击【添加】按钮,弹出如图对话框:
5. 点击【高级】按钮,弹出如图对话框:
单击【立即查找】,会看到同窗提对话中下面的搜索结果列表栏中出现权限组列表信息,如图:
7. 分别将 IIS_IUSRS 和 NETWORK
SERVICE 选中,并单击确定,如图:
IIS_IUSRS:是一个内建帐号,它不再需要密码,它已经拥有了所有的文件和系统资源的访问权限,因此如果一个帐号被添加到该组中,在IIS中它将以应用程序池身份无缝工作!因此,它可以很友好的控制我们在使用IIS对文件操作时的权限问题!逻辑上你可以认为它就是NETWORK
SERVICE 或 LOCALSERVICE
Network Service 是 Windows Server
2003 中的内置帐户。不过在IIS7中,因为微软对 IIS 的权限做了一些改动,所以它似乎在这里已经不像在IIS
6.0中占有绝对控制作用了!但我还是将它加了进来,因为IIS7.0具体的权限详情并没有详细研究过,所以这样会保险一些!
8. 点击确定后,会看到如图的对话框:
上图中显示了两个权限组都已经被加了进来!然后单击确定即可!
接下来便是给他们在IIS中重新赋予权限即可:
IIS_IUSRS只要赋予它修改权限即可,这样一来在windows权限级别中,修改一下的权限也会被系统自动的选择赋予,如图:
但后单击确定即可!
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。503: Service Unavailable
503: Service Unavailable
访问太频繁了,服务器要炸。

我要回帖

更多关于 iis7 ftp无法写入权限 的文章

 

随机推荐