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.
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With