我如何给写一个文件夹在Windows 7 ASP.NET许可? [英] How do I give ASP.NET permission to write to a folder in Windows 7?

查看:146
本文介绍了我如何给写一个文件夹在Windows 7 ASP.NET许可?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个新的Win7工作站,我试图让ScrewTurn维基的机器上运行。我STW安装使用文件系统选项来存储数据,因此我需要给写权限的文件夹中的网站安装在ASP.NET工作进程。

I have a new Win7 workstation and I am trying to get ScrewTurn Wiki to run on the machine. My STW installation is using the file system option to store its data, and as such I need to give write permissions to the ASP.NET worker process in the folder the website is installed in.

不过,我似乎无法能够拿出在Win7工作进程的名称,以便将它添加到该文件夹​​的权限。在XP它的aspnet_wp,如果我没有记错,但这并不是其在Win7名。

HOWEVER, I cannot seem to be able to come up with name of the worker process in Win7 in order to add it to the permissions for the folder. In XP it was ASPNET_WP, if I remember correctly, but that is not its name in Win7.

有人可以告诉我吗?

编辑补充:

在应对@Dragan_Radivojevic,这里就是有问题的应用程序池的样子(命名ScrewTurnWiki):

In response to @Dragan_Radivojevic, here's what the application pool in question looks like (named ScrewTurnWiki):

的身份是ApplicationPoolIdentity

The Identity is "ApplicationPoolIdentity"

推荐答案

写权限授予所有IIS_USRS组是从安全角度看是一个坏主意。你不需要做到这一点,你可以给权限只有系统用户运行的应用程序池去了。

Giving write permissions to all IIS_USRS group is a bad idea from the security point of view. You dont need to do that and you can go with giving permissions only to system user running the application pool.

如果您使用的是II7(我猜你这样做)执行以下操作。

If you are using II7 (and I guess you do) do the following.


  1. 开启IIS7

  2. 在您需要修改权限选择网站

  3. 转至基本设置,看看你正在使用的应用程序池。

  4. 转到应用程序池,并找到#3的应用程序池

  5. 找到用于运行该应用程序池系统帐户(标识列)

  6. 导航在IIS中存储的文件夹,选中它,然后点击编辑权限(下操作子菜单右侧)

  7. 开启安全选项卡,并添加所需的权限仅供用户你#3
  8. 确定

注1:如果你看到ApplicationPoolIdentity在#3你需要引用此系统用户类似这样的IIS程序池{} application_pool_name。例如IIS程序池\\默认应用

Note #1: if you see ApplicationPoolIdentity in #3 you need to reference this system user like this IIS AppPool{application_pool_name} . For example IIS AppPool\DefaultAppPool

注2:添加此用户时,请确保在选择用户或组对话框,设置正确的位置。这需要设置到本地机器,因为这是本地帐户

Note #2: when adding this user make sure to set correct locations in the Select Users or Groups dialog. This needs to be set to local machine because this is local account.

这篇关于我如何给写一个文件夹在Windows 7 ASP.NET许可?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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