[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Make branch read only

From: Jeff Marder <jeff.marder_at_yahoo.com>
Date: 2006-08-11 18:02:20 CEST

You could also use mod_authz_svn if you are using Apache to serve up your repository. It allows you to set per-directory read/write access and is fairly easy to set up. My Apache config file looks something like this:

<Location /svn>
    DAV svn
    SVNParentPath /srv/svn
    AuthType Basic
    AuthName "Subversion"
    AuthUserFile /etc/https/svn.passwd
    AuthzSVNAccessFile /etc/https/svn.authz
    Require valid-user
</Location>

My svn.authz looks something like this:

[groups]
administrators = account1
developers = account1,account2,account3\

[/]
* = r
@administrators = rw

[/trunk]
@administrators = rw
@developers = rw

[/branches]
@administrators = rw
@developers = rw

[/tags]
* = r
@administrators = rw

In this case administrators have read/write access to the whole repository while developers have read/write to everything except the tags directory which is read-only.

Chapter 6 of the SVN book covers mod_authz_svn. Hope this helps.

Jeff

----- Original Message ----
From: Paul <paul@pcssinc.com>
To: users@tortoisesvn.tigris.org
Sent: Friday, August 11, 2006 9:47:37 AM
Subject: Make branch read only

How can I make a branch read only? Thanks.

paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Fri Aug 11 18:02:28 2006

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.