Hi Dave,

On Tuesday 18 January 2011 07:13 PM, Dave Pawson wrote:
I'm resurrecting a subversion setup.
subversion 1.6.5 on apache 2.

Apache setup
<Location /repos>
Dav svn
SVNParentPath /srv
Authtype Basic
AuthName "..."
AuthuserFile /etc/svnauthfile
Require valid-user
</Location>


Clearly, you are using Authz. But you have *missed* out the "AuthzSVNAccessFile" in your config file, which could be something like,

AuthzSVNAccessFile /path/to/path-authz-file

Hence your config file must look like:

<Location /repos>
Dav svn
SVNParentPath /srv
Authtype Basic
AuthName "..."
AuthuserFile /etc/svnauthfile
AuthzSVNAccessFile path/to/path-authz-file
Require valid-user
</Location>



path-authz-file is the file where you specify the path-based permissions to the users.
Here is a sample:

[pac:/]
dpawson = rw
sue = r

user apache is set as owner of /srv and all subdirectories
I used, as root,
svnadmin create /srv/files
svnadmin create /srv/pac

Hope this helps you :)


Thanks and regards
Prabhu

Reply via email to