简体   繁体   English

如何允许非管理员用户使用Web部署在IIS 6上部署Web应用程序

[英]How to allow non-admin user to deploy web applications on IIS 6 using web deploy

I'd like to deploy a web application to IIS 6 on a remote server using a Web Deploy. 我想使用Web Deploy将Web应用程序部署到远程服务器上的IIS 6。 I succeed to publish by an admin account of server but couldn't publish by a non-admin account. 我成功通过服务器的管理员帐户发布,但无法通过非管理员帐户发布。 it failed with message : Unauthorized(401) 它失败并显示消息:未经授权(401)

I've found two different answer about this problem. 关于此问题,我找到了两个不同的答案。

  • scott guthrie said, "The non-admin scenarios enable administrators to configure Web Deploy on a server, and then delegate a subset of deployment capabilities to developers who do not have admin accounts on the production server" (http://weblogs.asp.net/scottgu/archive/2010/09/13/automating-deployment-with-microsoft-web-deploy.aspx) scott guthrie说:“非管理方案使管理员能够在服务器上配置Web Deploy,然后将部署功能的子集委派给在生产服务器上没有管理员帐户的开发人员。”(http://weblogs.asp。净/ scottgu /存档/ 2010/09/13 /自动化部署与 - 微软网络deploy.aspx)

  • Troy Hunt said, "The account publishing must have admin rights on the server" (http://www.troyhunt.com/2010/11/you-deploying-it-wrong-teamcity_24.html) 特洛伊·亨特(Troy Hunt)说:“帐户发布必须在服务器上具有管理员权限”(http://www.troyhunt.com/2010/11/you-deploying-it-wrong-teamcity_24.html)

What is right? 什么是对的? I hope to know how to deploy with Web Deployment Remote Agent Service on IIS 6 by a non-admin account. 我希望知道如何通过非管理员帐户在IIS 6上使用Web部署远程代理服务进行部署。

Unfortunately, you can't. 不幸的是,你不能。 From later on in ScottGu's blog post: 从后来在ScottGu的博客文章中:

If you try and follow the above steps on Windows 7, Windows Vista, or Windows Server 2003, though, you'll notice that the IIS Management Service (and its icon within the IIS admin tool) isn't available. 但是,如果尝试在Windows 7,Windows Vista或Windows Server 2003上执行上述步骤,则会注意到IIS管理服务(及其在IIS管理工具中的图标)不可用。 Instead you need to follow a slightly different set of steps to enable the Web Deploy service. 相反,您需要遵循一组略有不同的步骤来启用Web Deploy服务。

... ...

Using this approach [Web Deploy Agent] won't allow you to enable “delegated access” (which allows non-admin accounts to deploy – and which I'll cover in more depth in my next blog post) – but will allow those with an account with admin permissions to deploy to the machine. 使用这种方法,[Web Deploy Agent]不允许您启用“代理访问”(允许非管理员帐户进行部署-我将在下一篇博客文章中对其进行更深入的介绍)-但允许具有具有管理员权限的帐户以部署到计算机。

The difference is in the version of IIS and Scott's examples are all for IIS 7.x 区别在于IIS的版本,Scott的示例都是针对IIS 7.x的。

I'm in the same boat, I wish it wasn't so but unfortunately that's the limitation with the old version. 我在同一条船上,但愿不是那样,但是不幸的是,这是旧版本的局限性。

I've just tried to locate the original reference re admin on IIS6 but I can't seem to find it. 我刚刚尝试在IIS6上找到原始参考re admin,但似乎找不到它。 Hopefully someone will dig it up. 希望有人会把它挖出来。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Web部署转储dirPath不使用委派和非管理员用户 - Web Deploy dump dirPath not working with delegation and a non-Admin user 如何在IIS中部署.NET Web项目 - How To Deploy .NET Web Project in IIS asp.net Web API无法使用非管理员用户连接到Azure SQL数据库 - asp.net web api cannot connect to Azure SQL database with non-admin user 如何配置TFS以构建和部署多个Web应用程序? - How can I configure TFS to build and deploy multiple web applications? 如何使用Web应用程序部署Visual Studio Development Server - how to deploy Visual Studio Development Server with web applications 使用集成管道在 IIS 上部署 ASP.Net web 应用程序 - Deploy ASP.Net web application on IIS using integrated pipeline 如何部署应用程序并包括IIS设置? - How to deploy applications and include IIS settings? 如何在IIS上部署Angular和.NET Core Web API? - How To Deploy Angular And .NET Core Web API On IIS? 是否可以在安装了SharePoint应用程序的同一服务器的IIS上部署独立的/单独的Web应用程序? - Can we deploy the independent /separate web application on same server‘s IIS on which SharePoint applications are installed? 如何使用Visual Studio 2010在IIS 8.0中部署WCF Web服务? - How to deploy a WCF web service in IIS 8.0 using Visual Studio 2010?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM