views:

57

answers:

2
+1  Q: 

SVN Authorization

I am trying to setup SVN authorization (authentication works fine already) and my AuthzSVNAccessFile looks like the following:

[groups]
todos = user1, user2
proj = user1

[/]
@todos = r

[/myproj]
@proj = rw

However, I can checkout the content of proj (as user1) but I can't commit to it... If i change the file changing to the following:

[groups]
todos = user1, user2
proj = user1

[/]
@todos = rw

[/myproj]
@proj = rw

I can successful commit... Anyone knows what's wrong with my access file? I am using SVN with SVNParentPath, to point to a folder containing multiple repositories.

The errors it gives are:

svn: Error: Server sent unexpected return value (403 Forbidden) in response to CHE
CKOUT

Thanks.

A: 

I solved the problem by creating one mapping per repository. So I can specify different control files for each project and give permissions on / to everyone.

Weslei
A: 

The problem was with the naming of the repositories. As project 1 repository was named myproj1 I needed to set up as:

[groups]
all = user1, user2
proj1users = user1

[/]
@all = r

[myproj1:/]
@proj1users = rw
@all = 

so it would work giving the right permissions to the project1!

Weslei