如何限制特定的 trac/svn 用户访问 SVN 的特定文件夹/主干?
我已经用 svn 安装了 trac。我有不同的项目干。我想限制少数用户,以便他们只能访问我定义的一个特定中继。
我该怎么做?
I have trac installed with svn. I have different trunks of projects. I want to limit few users, so that they can only access one specific trunk whichever I define.
How do I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 svn 服务器的 authz 文件对特定目录进行密码保护,如下所示:
有 其他方式通过Apache访问。请参阅本书。
我的问题是“为什么?”如果你担心他们会把事情搞砸,那有点违背版本控制的想法。此外,如果您让开发人员可以自由地创建任意数量的分支,那么他们将 搞乱自己的分支而不是主干。
You can password-protect specific directories using the authz file of the svn server like this:
There are other means for accessing through Apache. See the book.
My question would be "why?" If you're afraid they'll mess something up, that kinda goes against the idea of revision-control. Furthermore, if you instead give developers the freedom to create as many branches as they want, then they'll mess up their own branches instead of the trunk.
Trac Hacks 有一个名为 Svnauthz 文件管理插件 的插件,可能适合您。我希望自己做一些类似的事情,尽管我想做的是将不同的 Trac 项目限制到存储库的某些部分。还没试过。一旦我这样做了就会回复你。
At Trac Hacks there's a plug-in called Svnauthz File Administration plugin that might work for you. I'm looking to do something similar myself though what I want to do is restrict different Trac projects to certain parts of the repository. Haven't tried it yet. Will get back to you once I do.