You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "S. Vater" <st...@web.de> on 2006/06/27 15:46:20 UTC

Problem with per-directory access control

Hi,

I have a problem configuring the "AuthzSVNAccessFile" file. 

I have different repositories in /var/lib/svn/. For one of 
them I want to use the per-directory access control using the 
AuthzSVNAccessFile directive. 

For example: With an AuthzSVNAccessFile like
----------------------
[/]
* = r

[repos1:/]
user1 = rw
----------------------
In this case user1 cannot write to repos1. It seems that the [respos:path] 
directive does not work correctly.

In http.conf, the configuration is like:
----------------------
<Location /svn>
   DAV svn
   SVNParentPath /var/lib/svn
</Location>

<Location /svn/repos1/>
   Use KerberosAuth "MYDOMAIN.COM" "BLABLA" On
   AuthzSVNAccessFile /homepath/AuthzSVNAccessFile
   Require valid-user
   SSLRequireSSL
</Location>

<Location /svn/repos2>
   ...
</Location>
---------------------

Can anyone tell me, what is the problem?

Regards, Stefan

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

Re: Problem with per-directory access control

Posted by Rainer Sokoll <r....@intershop.de>.
S. Vater wrote:
> Hi,
> 
> I have a problem configuring the "AuthzSVNAccessFile" file. 
> 
> I have different repositories in /var/lib/svn/. For one of 
> them I want to use the per-directory access control using the 
> AuthzSVNAccessFile directive. 
> 
> For example: With an AuthzSVNAccessFile like
> ----------------------
> [/]
> * = r
> 
> [repos1:/]
> user1 = rw
> ----------------------
> In this case user1 cannot write to repos1. It seems that the [respos:path] 
> directive does not work correctly.
> 
> In http.conf, the configuration is like:
> ----------------------
> <Location /svn>
>    DAV svn
>    SVNParentPath /var/lib/svn
> </Location>
> 
> <Location /svn/repos1/>
>    Use KerberosAuth "MYDOMAIN.COM" "BLABLA" On
>    AuthzSVNAccessFile /homepath/AuthzSVNAccessFile
>    Require valid-user
>    SSLRequireSSL
> </Location>
> 
> <Location /svn/repos2>
>    ...
> </Location>
> ---------------------
> 
> Can anyone tell me, what is the problem?

Try
<Location /repos1/>
  DAV svn
  SVNParentPath /var/lib/svn
  blabla
</Location>

Rainer

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