[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Path auth: more specific directory

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-06-19 22:15:37 CEST

On 6/19/07, Stephane Bortzmeyer <bortzmeyer@nic.fr> wrote:
> [Warning: beginner with path-based authentication.]
>
> I would like to give rights on some directories (of a HTTP Subversion
> server) and different rights in a subdirectory.
>
> So, I have a general rule (anyone can read, only me can write):
>
> [/CODEV-NIC]
> * = r
> bortzmeyer = rw
>
> And a more specific one, for a subdirectory (even read access is prohibited):
>
> [/CODEV-NIC/internal]
> * =
> bortzmeyer = rw
>
> I do not see in the documentation which one will be used. Does it
> depend on the order in the configuration file? Or is the most specific
> always used? (From my experiments, it seems so, but I would like to be
> sure.)

The most-specific path is always matched first.
http://svnbook.red-bean.com/en/1.2/svn.serverconfig.httpd.html#svn.serverconfig.httpd.authz.perdir

I try to set up my file with permissions for the root directory first,
and sort based on how deep the path goes (a path 10 directories deep
would be towards the bottom, for example). I do this mostly to make it
easier for me to read.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 19 22:16:01 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.