How do I grant a user limited access to a specific directory in svn?

svn (Subversion) is an excellent version control tool that’s used worldwide to track changes made to files. Rather than granting all users full read/write access, you can restrict their access accordingly using authz.

To do so, please do the following:

1. Update the conf/svnserve.conf file to uncomment the following:

### Uncomment the line below to use the default authorization file.
authz-db = authz

2. Update the authz file to include the restricted access as well as the other users who have read/write access.

mygroup = user1,user2,user3

@mygroup = rw

contractor1,contractor2 = r

contractor1,contractor2 = rw

3. Once you have saved the files the updates will take effect immediately.

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top