I am new to SVN and trying to configure access control for multiple projects on SVN. I want to use a single password file and a single authentication file for access control for all the projects. But, it isn't working. Below is my configurations. My directory structure:
/srv
|--svn
|--repos
|-- conf
|-- passwd
|-- authz
|-- projectX
|-- projectY
|-- projectZ
projectX/conf/svnserve.conf entries for projectX:
[general]
anon-access = none
auth-access = write
password-db = /srv/svn/repos/conf/passwd
authz-db = /srv/svn/repos/conf/authz
realm = Project Repository
Same configuration is used for projectY and projectZ. Entries for /srv/svn/repos/conf/passwd:
[users]
user1 = password
user2 = password
user3 = password
Entries for /srv/svn/repos/conf/authz:
[/]
* =
user1 = rw
[projectX:/]
user2 = rw
user3 = r
[projectY:/]
user3 = rw
user2 = r
[projectZ:/]
user2 = r
user3 = r
So, user2 should have read-write access to projectX and user3 should have read-only access to projectX. But, only user1 can access all these repositories. user2 and user3 can never access any of the repositories. Every time it gives the error message: Commit failed (Authorization failed!) Can anyone please help me finding my error? I am using version 1.6.5 of Subversion on the server and 1.6.4 on the client.