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

path based authorization problem

From: Diederick Huijbers <d.huijbers_at_apollo-ict.nl>
Date: 2007-02-28 21:50:18 CET

Hi all,

I'm testing the 'path based authorisation' feature. I started the deamon
like this: svnserve -r /usr/local/repositories

Than I create a directory (which is the test layout for my project) like:
css
css/modules
css/modules/page
css/modules/product
HTML
HTML/modules
HTML/modules/product
HTML/modules/page
index.php
js
js/modules
js/modules/product
js/modules/page

Now, I want to create a user called "productuser", which can only
checkout the files of the following directories:

/css/modules/product
/HTML/modules/product
js/modules/product

But when I try to checkout using the user "productuser" (which I defined
in a password-db file) I get:
svn: Not authorized to open root of edit operation

I seem te be able to fix this by adding:
(test is the name of my repos)
[test:/]
* = r

Though than I can checkout everything.. and I'm unable to restrict
certain directories.

I hope someon can help me...

--------- contents of config files -----------
#svnserver.conf
[general]
password-db = userfile
realm = cms
anon-access = read
auth-access = write
authz-db = authz

#userfile
[users]
productuser = test

#authz
[test:/]
* = r

#test to checkout only a product dir
[test:/css/modules/product]
productuser = rw
---------- end -----------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 28 21:50:54 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.