tags:

views:

36

answers:

2

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  A: 

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.

Joel J. Adamson
A: 

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.

spade78
So I just installed the svnauthzadmin plugin and it looks to do what you need. The admin interface allows you to specify repository paths and assign users' R/W permissions to those paths.
spade78