开发者

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

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 spec开发者_Python百科ific trunk whichever I define.

How do I do that?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜