You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Christoph Ludwig <lu...@fh-worms.de> on 2007/06/28 13:04:10 UTC
mod_authz_svn: cannot restrict access to subdirectories
Hi,
I am using mod_authz_svn 1.3.1 installed from the libapache2-svn package of
Ubuntu 6.06. I want to give a group of colleagues from other institutions full
access through https to some directory /trunk/a/b in one of our repositories,
but not to the its parent directories.
I found after some googling that I have to give them read access at least to
the repository's top level directory / or any access to /trunk/a/b is denied.
I can live with that since the top level directory contains nothing I want to
protect. But I don't want them to read the intermediate directory
/trunk/a. However, all my attempts to refuse them access failed.
Below are the relevant parts of my apache configuration and of the authz. Can
anyone give me apointer what's wrong?
Regards
Christoph
Apache config:
<Location /svn/>
DAV svn
SVNParentPath /srv/subversion/
##################
# Authentication #
##################
# Don't ask for client certificates
SSLVerifyClient none
# Authenticate by a simple password file.
# That's ok because the password is transmitted over an
# TLS-secured connection.
AuthName "subversion repositories"
AuthType basic
AuthUserFile /srv/subversion/AAI/httpd.passwd
#################
# Authorization #
#################
# try anonymous access first, resort to real
# authentication if the authorization policy
# makes it necessary.
satisfy any
require valid-user
# authorization policy file
AuthzSVNAccessFile /srv/subversion/AAI/authz
</Location>
(sanitized) authz:
[groups]
internal = myself,assistant
project = myself,assistant,colleagueA,colleagueB
# default access
[/]
@internal = rw
* =
# access control for the various repositories
[repA:/]
@internal = rw
@project = r
* =
[repA:/trunk/]
@internal = rw
@project =
[repA:/trunk/a/b/]
@project = rw
--
FH Worms - University of Applied Sciences
Fachbereich Informatik / Telekommunikation
Erenburgerstr. 19, 67549 Worms, Germany
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: mod_authz_svn: cannot restrict access to subdirectories
Posted by Christoph Ludwig <lu...@fh-worms.de>.
Hi Ryan,
On Thu, Jun 28, 2007 at 04:50:02PM -0500, Ryan Schmidt wrote:
>
> On Jun 28, 2007, at 08:04, Christoph Ludwig wrote:
>
> >I am using mod_authz_svn 1.3.1 installed from the libapache2-svn
> >package of
> >Ubuntu 6.06. I want to give a group of colleagues from other
> >institutions full
> >access through https to some directory /trunk/a/b in one of our
> >repositories,
> >but not to the its parent directories.
> >
> >I found after some googling that I have to give them read access at
> >least to
> >the repository's top level directory / or any access to /trunk/a/b
> >is denied.
> >I can live with that since the top level directory contains nothing
> >I want to
> >protect. But I don't want them to read the intermediate directory
> >/trunk/a. However, all my attempts to refuse them access failed.
> >
> >Below are the relevant parts of my apache configuration and of the
> >authz. Can
> >anyone give me apointer what's wrong?
>
> According to the change log, that was fixed in Subversion 1.3.2. You
> should upgrade, preferably to the current version, 1.4.4.
>
> http://svn.collab.net/repos/svn/trunk/CHANGES
>
> >Version 1.3.2
> [snip]
> > * fixed: authz requires read access for root for writes (issue
> >#2486)
that is good to know, but as I said, I can live with issue #2486 for the time
being. The root contains only /trunk and /branches - these directory names
are hardly confidential. I therefore don't mind if the @project group has read
access to repA:/
My problem is that even though I explicitly took away all access permissions
for repA:/trunk/ from the group @project, the members of @project still can
read trunk's content. (I.e., 'svn ls https://my.domain/svn/repA/trunk/'
succeeds, and so does 'svn ls https://my.domain/svn/repA/trunk/a/'.)
I want the following access permissions enforced:
[repA:/]
@project = r
[repA:/trunk/]
@project =
[repA:/trunk/a/]
@project =
[repA:/trunk/a/b/]
@project = rw
Or is the behaviour I observe a consequence of issue #2486 that was not
mentioned on the issue tracker? (I'd rather keep the authz module packaged by
my distribution; but if someone confirms that this issue was fixed as well in more
recent versions, then I will do a manual upgrade.)
Regards
Christoph
--
FH Worms - University of Applied Sciences
Fachbereich Informatik / Telekommunikation
Erenburgerstr. 19, 67549 Worms, Germany
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: mod_authz_svn: cannot restrict access to subdirectories
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 28, 2007, at 08:04, Christoph Ludwig wrote:
> I am using mod_authz_svn 1.3.1 installed from the libapache2-svn
> package of
> Ubuntu 6.06. I want to give a group of colleagues from other
> institutions full
> access through https to some directory /trunk/a/b in one of our
> repositories,
> but not to the its parent directories.
>
> I found after some googling that I have to give them read access at
> least to
> the repository's top level directory / or any access to /trunk/a/b
> is denied.
> I can live with that since the top level directory contains nothing
> I want to
> protect. But I don't want them to read the intermediate directory
> /trunk/a. However, all my attempts to refuse them access failed.
>
> Below are the relevant parts of my apache configuration and of the
> authz. Can
> anyone give me apointer what's wrong?
According to the change log, that was fixed in Subversion 1.3.2. You
should upgrade, preferably to the current version, 1.4.4.
http://svn.collab.net/repos/svn/trunk/CHANGES
> Version 1.3.2
[snip]
> * fixed: authz requires read access for root for writes (issue
> #2486)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org