How do I restrict specific trac/svn users to access specific folders/trunk of SVN?

馋奶兔 提交于 2019-12-08 18:20:29

You can password-protect specific directories using the authz file of the svn server like this:

[proj:/branches/davesbranch]
dave = rw

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.

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!