如何防止人们在 Perforce 中编辑其他人的工作区选项?
我是 Perforce 的新手。我们当前的服务器似乎存在配置错误,因为任何人都可以更改其他人的工作区选项。
有谁知道如何快速解决该问题?
谢谢,
托马斯
I am new to Perforce. There seems to be a a misconfiguration in our current Server, as anybody can change anyone else's workspace options.
Does anyone know how to quickly fix that problem ?
Thanks,
Thomas
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您在工作区中设置“锁定”选项,则工作区只能由其所有者(或具有“管理员”或更高访问级别的用户)修改。它还会阻止其他用户使用或删除该工作区。
If you set the 'locked' option in the workspace, then the workspace can only be modified by its owner (or by a user with 'admin' or higher access level). It'll also prevent other users from using or deleting that workspace.
我不知道有什么方法可以轻松或快速地解决该问题。
话说回来,能力真的有问题吗?或者是不同的人认为他们拥有不同的工作空间配置?在我工作的地方,我们将用户名添加到我们想要维护为自己的工作区的前缀,并将其保留在共享工作区之外(或有时使用不同的前缀)。
如果工作空间的所有权不明确并导致问题,这将解决您的问题。如果同事忽视所有权并故意做出改变,您可能还有其他问题需要担心。
I don't know of a way to easily or quickly fix the problem.
Having said that, is the ability being there really a problem? Or is it that different people think they have ownership of different workspace configurations? Here where I work, we prefix the username to any workspace that we want to maintain as our own, and leave it off of shared workspaces (or use a different prefix, at times).
If it is a situation where the ownership of a workspace is unclear and that is causing issues, this would resolve your problems. If it is a situation where coworkers are ignoring the ownership and intentionally making changes, you likely have other problems to worry about.
不是直接修复,但您可以通过实施“Spec Depot”来跟踪对客户端规格所做的更改。请参阅此处的知识库文章。
我必须承认,在阅读您的问题之前,我什至没有意识到您可以在没有管理员权限的情况下修改其他用户的客户端规范。在使用 Perforce 的 9 年里,我从未遇到过这对人们来说是一个实际问题。
cjhuitt 建议在客户端规范中添加用户名/首字母缩写,这是一个很好的建议,并且是很常见的做法,特别是在大型安装中。
Not a direct fix, but you can track changes made to client specs by implementing a "Spec Depot". See KB article here.
I must admit prior to reading your question I did not even realise you could modify another user's client spec without admin rights. In the 9 years of using Perforce I have never come across that as being an actual problem for people.
cjhuitt's suggestion of prefixing a client spec with user name/initials is a good one, and is pretty common practice, particularly in larger installations.
锁定工作空间是正确的方法,谢谢 Heath。
我编写了一个小型 PERL 脚本来锁定所有现有工作区:
我现在将尝试在创建或编辑工作区后使用触发器强制执行锁定选项。 :)
托马斯
Locking the workspace is the way to go, thanks Heath.
I have worked on a small PERL script to lock all existing workspaces:
I will now work to try to enforce the lock option with a trigger after a workspace is created or edited. :)
Thomas