You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jamie Risk <ja...@panacis.com> on 2007/06/04 20:36:05 UTC

AuthzSVNAccessFile question ...

Is it possible in the AuthzSVNAccessFile to specify wildard 
directories?  Where can I find more precise documentation than
"http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.
serverconfig.httpd.authz.perdir"
Or
"http://svnbook.red-bean.com/nightly/en/svn.serverconfig.pathbasedauthz.
html"
 
In our repository, each sub project has a consistent directory 
structure, say:
   proj-1/head
   proj-1/tag
   proj-1/branch
   proj-2/head
   proj-2/tag
   proj-2/branch
 
and as an example I'd like to implement a different global policy 
for each subdirectory "head", "tag", and "branch".

Without the ability to restart the Apach server willy-nilly, is this 
format acceptable and even understood?

#AuthzSVNAccessFile start
#------------------------
   [/]
   * = r

   # try to match on "*/head"!
   [head]
   @developers = rw
   @dev-admin  = rw
 
   # try to match on "*/branch"!
   [branch]
   @dev-admin = rw

   # try to match 'user_a' to his own directory ("*/tag/user_a")
   [tag/user_a]
   user_1 = rw

   # try to match 'user_1' to his own directory ("*/tag/user_b")
   [tag/user_b]
   user_b = rw

#------------------------   
#AuthzSVNAccessFile stop

- Jamie

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: AuthzSVNAccessFile question ...

Posted by Konrad Rosenbaum <ko...@silmor.de>.
On Monday 04 June 2007, Jamie Risk wrote:
> Is it possible in the AuthzSVNAccessFile to specify wildard
> directories? 

No. You'll have to specify your ACL for each path separately. You can always 
create a little script that does this for you.

> Where can I find more precise documentation than 
> "http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.
> serverconfig.httpd.authz.perdir"
> Or
> "http://svnbook.red-bean.com/nightly/en/svn.serverconfig.pathbasedauthz.
> html"

It doesn't get more precise than that. What are you missing?


	Konrad