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

Re: access file problem

From: Travis P <svn_at_castle.fastmail.fm>
Date: 2004-03-17 00:57:34 CET

On Mar 16, 2004, at 3:57 PM, Jack Huang wrote:

> I created another account Test. When I have
>
> [/]
> jack = rw
>
> jack could check things out with "svn co http://MyServer/MyRepos, but
> not Test. After adding Test = rw, Test was able to. However, if I
> change [/] to [/MyRepos], nothing works again. It seems it's an
> either-or proposition.
>
> The repository MyRepos is located on my server under /home/svn, as in
> /home/svn/MyRepos. /home/svn is also the log in directory for account
> svn that I use for repositories. When I have [/] in my
> svn-access-file, I assume that it will point to /home/svn and control
> access to all repositories under /home/svn. Likewise, when I have
> [/MyRepos] the underlying restrictions control access to
> /home/svn/MyRepos, [/OtherRepos] /home/svn/OtherRepos, etc. MyRepos
> was created using svnadmin create. I hope this may clarify thing
> somewhat.
>

Do keep discussion on the list.

I think your assumptions are not correct given your setup.

With this configuration:
> SVNPath /home/svn/MyRepos
  [/] will refer to the root of your MyRepos repository. [/MyRepos]
doesn't make sense (unless you have a dir in your repository named
"MyRepos" of course).

I believe that you want to checkout the SVNParentPath option and then
use an access file with syntax similar to:
[MyRepos:/]
jack=rw
[OtherRepos:/]
*=rw

(Check that syntax in the book, I just did it from memory and I've
never used multiple repositories, so there's a good chance I made a
mistake.)

There were significant fixes to SVNParentPath in 1.0.1, so be sure to
use that version or newer.

-Travis

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 17 01:00:12 2004

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.