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

Re: access control for Subfolder is not work in svn 1.6

From: Stefan Sperling <stsp_at_apache.org>
Date: Thu, 10 Jan 2013 14:43:26 +0100

On Thu, Jan 10, 2013 at 12:56:47PM +0000, Raghu GS wrote:
> Hello Everybody
>
> How can i block access to sub folders in svn for repository members ?
> I have tried "membername =" and "*=" (without quotes)
> parameters in svnauthz file.
>
> I have also tried "require user membernane" in
> /etc/httpd/conf.d/svn.conf
> All the procedures i have tried didn't work.

What doesn't work? Please be more specific.

Are you trying to list the repository? With svn or with a browser?

Are you trying check out from the repository? Commit to the repository?

Which URLs are you using during testing? Please be precise here.
Simple typing errors can often lead to the impression that authz
doesn't work.

> Please consult the pastebin links given below to know my configuration.
>
> 1) http://pastebin.com/1X71kM9P (/etc/httpd/conf.d/svn.conf)
> 2) http://pastebin.com/2xhN3pcc (/srv/svn/config/svnauthz.conf)
> 3) CentOS 5.x, subversion v1.6.11

This is not showing a complete configuration.

Did you load mod_authz_svn into Apache HTTPD? This is required for
authz to work in the first place. Your HTTPD configuration snippet
doesn't show whether or not you're loading the mod_authz_svn module.

You're using SVNPath so you don't need to prefix paths in the authz
rules with the repository name (Production:).
See http://svnbook.red-bean.com/en/1.7/svn.serverconfig.pathbasedauthz.html
which says:
  If you're using the SVNParentPath directive, it's important to specify
  the repository names in your sections. If you omit them, a section such
  as [/some/dir] will match the path /some/dir in every repository. If
  you're using the SVNPath directive, however, it's fine to only define
  paths in your sections—after all, there's only one repository.
Received on 2013-01-10 14:44:00 CET

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.