如何在 Visual Studio 2005 和 2003 中设置非管理员开发
我们接到指示,确保在开发时用完管理员和超级用户组,以防止安全漏洞。 需要采取哪些步骤来实现这一点,但仍然能够在需要时进行调试、编码和安装?
我们开发 ASP.NET 以及 VB.NET 应用程序。
谢谢!
布鲁克·杰克逊
We have been given the directive to make sure that when we develop we are running out of the administrator and poweruser groups to prevent security holes. What are the steps to take to make this possible, but still be able to debug, code, and install when needed?
We develop ASP.NET as well as VB.NET applications.
Thanks!
Brooke Jackson
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我在一个由 5 名以上开发人员组成的团队中使用 Visual C# 2005 和 Visual Web Developer 2005 使用 ASP.NET 2.0 开发 Web 应用程序已有 6 个多月了。 它是我们客户的内部应用程序,针对 Internet Explorer 6.0。 我一直在我的机器上使用非管理员帐户,从未遇到过任何问题。 具体来说,我在调试方面没有遇到任何问题。 现在我正在切换到 Visual Studio 2008,我希望一切都能像现在一样工作。
我正在使用笔记本电脑进行开发。 同时,我在不同的地方移动并连接到互联网,并且仅在必要时才使用我的管理员帐户。 我确实相信,为日常任务运行管理员帐户是最大的安全威胁,因为它是如此常见。
I have been developing a web application in a team of 5+ developers using ASP.NET 2.0 using Visual C# 2005 and Visual Web Developer 2005 for 6+ months. It was an internal application for our client and was targeted at Internet Explorer 6.0. I have been always using a non-administrator account on my machine and have never run into any problems. Specifically, I have not experienced any problems with debugging. Right now I am switching to a Visual Studio 2008 and I hope everything will work just as it does now.
I am using a laptop for development. A the same time I am moving around and connecting to the internet in different places and I use my admin account only when necessary. I really believe that running an admin account for every day tasks is the single greatest security threat, just because it is so common.
使用 Vista,并利用 UAC,因为这是 UAC 允许您做的事情。 您可以在需要时授予 VS 完全权限,以及应用程序/网站有限权限。
我在 Vista 上运行 VS2008,并启用了 UAC。 我只有一个问题值得一提。
当我使用提升的权限运行 VS,然后在没有它们的情况下运行它时,我偶尔会遇到奇怪的文件权限问题。 VS 将无法删除旧的构建文件,但如果我从资源管理器中删除它们就可以了。 同样,只有在提升权限和非提升权限之间切换时才会发生这种情况。
Use Vista, and take advantage or UAC, because that's UAC allows you to do. You can give VS full rights when needed, and the application/website limited rights.
I'm running VS2008 on Vista with UAC enabled. I've only had one issue worth mentioning.
I occasionally have weird file permission issues when I've run VS with elevated privileges then later run it without them. VS won't be able to delete the old build files, but if I delete them from Explorer its fine. Again, this only happens when switching between elevated and non-elevated permissions.
对我来说似乎很愚蠢。 以管理员/高级用户身份在本地运行 VS,并具有网络上发布给用户等所需的最低权限。
只需确保您使用 VS 创建的应用程序在没有这些额外权限的情况下仍然可以工作。
Seems silly to me. Run VS as admin/power-user locally with whatever minimal rights you need on the network for publishing to the users and whatnot.
Just makes sure that the applications you CREATE with VS still work without those extra rights.
请注意,以非管理员身份运行 VS 似乎存在很多问题< /a>.
Beware, there seems to be a lot of issues with running VS as non-admin.