共享驱动器上的网络服务权限 [英] NETWORK SERVICE Permissions on Shared Drive

查看:65
本文介绍了共享驱动器上的网络服务权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我们将文件放在共享位置。

支持从.NET页面使用它来读取内容。



我们可以为NETWORK SERVICE提供权限,以便可以从.NET访问该文件。



我在共享文件夹中添加了NETWORK SERVICE作为用户但无法访问。



当我在Web.Config中模拟我的ID时,可以访问该文件。 />
但当然我不能将我的id用于生产环境。

Hi,

We have a file placed at a shared location.
PLanning to use it from a .NET page to read contents.

Can we provide permissions to NETWORK SERVICE so that the file is accessible from .NET.

I added NETWORK SERVICE as a user on the shared folder but not able to access.

The file is accessible when I impersonate my ID in Web.Config.
But certainly I cannot use my id for Production environment.

推荐答案

您需要找出应用程序池设置为运行的帐户。在IIS中,找到您的站点所在的应用程序池,并找到正在运行它的帐户。这是需要权限的帐户。
You need to find out what account the Application Pool is set to run as. In IIS, find the app pool your site is in and find the account that is running it. That is the account that needs the permissions.


这篇关于共享驱动器上的网络服务权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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