如何授予标识ApplicationPoolIdentity读取权限到我的网站中的文件夹 [英] How to grant identity ApplicationPoolIdentity read rights to folder within my site

查看:1583
本文介绍了如何授予标识ApplicationPoolIdentity读取权限到我的网站中的文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的Windows 2008 R2服务器我有默认的A​​SP.NET 4.0版的应用程序池下运行的网站。 ASP.NET 4.0版的应用程序池的标识设置为ApplicationPoolIdentity(我猜这是默认值)。

On our Windows 2008 R2 server I have a site running under the default ASP.NET v4.0 application pool. The identity of ASP.NET v.4.0 app pool is set to "ApplicationPoolIdentity" (I guess this is default).

我如何授予此标识访问从我的网站中的自定义文件夹阅读。我曾尝试应用程序池标识和ApplicationPoolIdentity,但两者给我:

How do I grant this identity access to read from a custom folder within my site. I have tried "Application Pool Identity" and "ApplicationPoolIdentity" but both gives me:

无法找到名为应用程序池标识的对象。

An object named "Application Pool Identity" cannot be found.

奖金问题=应该不是我忘了这所有,并存储文件App_Data文件夹中的变化?那会解决这一问题?

Bonus question = should I instead forget about all this and make the change to store the files in app_data folder? Would that solve the issue?

推荐答案

ICACLS&L​​T;&夹GT; /授予IIS程序池\\ nameoftheapppool:WRX 并没有为我工作,它给了一个错误:

ICACLS <folder> /grant "IIS AppPool\nameoftheapppool":WRX did not work for me, it gave an error:

Invalid parameter "IIS AppPool\nameoftheapppool" 

但是,下面没有工作:

but, the following did work:

ICACLS <folder> /grant "IIS AppPool\nameoftheapppool:WRX"

这篇关于如何授予标识ApplicationPoolIdentity读取权限到我的网站中的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆