Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Read-only access of Subversion repository

Tags:

svn

How can I limit access to a repository so certain users can only checkout/update?

We want to control the repository so only production-ready code is committed to the repository, but still want the programmers to use the repository, and have the up-to-date code available.

like image 739
lamcro Avatar asked Dec 15 '11 17:12

lamcro


People also ask

How do I access local SVN repository?

You can either store your repositories locally and access them using the file:// protocol or you can place them on a server and access them with the http:// or svn:// protocols. The two server protocols can also be encrypted. You use https:// or svn+ssh:// , or you can use svn:// with SASL.


1 Answers

Assuming you're using svnserv:

You need to configure the user's rights explicitly in the authz file.

harry = rw
sally = r

Also, there is a section in the svnserv.conf file to look at:

harry has read/write access, and sally is read-only.

[general]
### These options control access to the repository for unauthenticated 
### and authenticated users.  Valid values are "write", "read",

### and "none".  The sample settings below are the defaults. 

anon-access=read 

auth-access=write

There's more info here: http://www.visualsvn.com/support/svnbook/serverconfig/svnserve/

like image 133
David Avatar answered Oct 02 '22 23:10

David