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

Deadly 提交于 2019-12-08 04:32:00

问题


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?


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/3455966/how-do-i-restrict-specific-trac-svn-users-to-access-specific-folders-trunk-of-sv

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