You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Andreas Hasenack <an...@mandriva.com.br> on 2007/10/02 14:09:16 UTC
need to restrict a subdirectory from a repo
Hi,
I need to restrict read access to a directory in a repository. Since I
have a combination of possible access methods, care has to be taken to
cover them all. In particular, I'm concerned with http:// (read-only)
and svn+ssh:// (read-write).
To hide the directory from svn+ssh://, I'm using authz:
svnserve.conf:
[general]
authz-db = authz
authz:
[groups]
private = jsmith
[/]
# I have pre-commit hooks to further restrict write access
* = rw
[packages:/private]
@private = rw
* =
This works for svn+ssh://. Now, I tried http:// access, and even
specifying with a <Location> directive to forbid all access to
the /private location, access still works. Seems authz is overriding it.
My apache conf snippet:
<Location /svn/repos>
DAV svn
SVNPath /var/lib/svn/repositories/packages
<LimitExcept GET PROPFIND OPTIONS REPORT>
order deny,allow
Deny from All
</LimitExcept>
</Location>
<Location /svn/repos/private>
Order deny,allow
Deny from all
Allow from trusted.host
</Location>
Unless I remove the authz config, I can access the /svn/repos/private
url even with the above Location denying it. Am I doing something wrong
or is this the way it is?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org