I have a project in svn repository, which contains more branches and tags, and several users are working in the same project but in different branches. I gave write permission to particular user to access particular branch only, but not to other branches, and similarly for another user to write to yet different branch.
Step 1 : I have create user using
htpasswd -m /etc/apache2/dav_svn.passwd username
Step 2 : svnserve.conf
[general]
password-db = passwd
realm = reponame
anon-access = none
auth-access = write
authz-db = authz
Step 3 : passwd
username : passwd
Added user & passwd which are used for creating htpasswd for this project in passwd file.
Step 4 : authz
#[the_name_of_repository:/path_in_that_repository]
[test:/]
user1 = r
user2 = r
[test:/branches/data1]
user1 : rw
[test:/branches/data2]
user2 : rw
So, now user2
can only access (commit, update, checkout) data2
branches and can read all other folders, and user2
can access (commit, update, checkout) data1
branch. Access control is not working properly as expected from authz
file.
What am I doing wrong?
user1
can accessdata1
", then your rules are all correct. What you haven't explained is how you serve your repository (Apache, svnserve, svnserve+ssh) and how you're pointing to your configurations there. – alrocsvnserver.conf
? The default issvnserve.conf
(note the lack of an r). – alroc