Web部署和文件夹权限 [英] Web deploy and folder permissions

查看:196
本文介绍了Web部署和文件夹权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用VS 2010来构建Web应用程序的部署包。我用手动它生成的部署脚本的CCommand其部署到IIS 6.0服务器。所有的东西才能正确的默认的Inetpub下网站复制。我唯一​​的问题是,文件夹的权限继续得到复位,一旦我部署。

I'm using VS 2010 to build the deployment package for a web application. I manually deploy it to the IIS 6.0 server using the deployment ccommand script it generates. All the stuff gets copied under the Inetpub default website properly. The only issue I have is that the folder permissions keep getting reset once I deploy.

说我的网站是文件夹Mywebsite之下。我承认某些用户XYS完全控制该文件夹。一切都很好。下一次我部署,用户XYZ不再具有完全控制权限被重置。

Say my website is under the folder "Mywebsite". I grant certain user XYS full control to this folder. All is well. The next time I deploy, user XYZ no longer has full control and the permissions gets reset.

推荐答案

如果你想跳过ACL操作,那么你需要在你的构建设置属性。您可以通过两种方式做到这一点。

If you want to skip ACL operations then you need to set a property in your build. You can do this in two ways


  1. 编辑您的项目文件

  2. 创建一个.wpp.targets文件

我会建议#2。对于这种情况下创建在同一目录中一个新的文件名为{}项目名,其中.wpp.targets {}项目名是项目的名称项目文件。那么这个文件里,你应该把下面的内容。

I would recommend #2. For this case create a new file in the same directory as your project file with the name {ProjectName}.wpp.targets where {ProjectName} is the name of your project. Then inside of this file you should place the following contents.

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
         ToolsVersion="4.0">

  <PropertyGroup>
    <IncludeSetAclProviderOnDestination>False</IncludeSetAclProviderOnDestination>
  </PropertyGroup>
</Project>

在这里,您设置的属性 IncludeSetAclProviderOnDestination 这将标志着Web发布管道没有包括那些为程序包创建的清单ACL提供商/发布

Here you are setting the property IncludeSetAclProviderOnDestination which will signal the Web Publishing Pipeline to not include ACL providers in the manifest that is created for the package/publish.

如果你想利用方式#1只扔在elment下整个。

If you want to take approach #1 just throw in the entire under the elment.

这篇关于Web部署和文件夹权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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