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

Re: "svn: Authorization failed"; what am I doing wrong?

From: Staffan Tjernstrom <subversion_at_staffan.tjernstrom.name>
Date: Mon, 2 Feb 2009 17:19:20 -0600

On Mon, Feb 02, 2009 at 02:37:27PM -0800, Hari Kodungallur wrote:
>
>On Mon, Feb 2, 2009 at 1:57 PM, Troy Watson <drtwox_at_gmail.com> wrote:
>
> Hi all,
>
> I'm trying to set up a subversion server for storing my personal
> projects. However, I can't actually get it working!
>
> After reading chapters 5 and 6 in the subversion book, I've installed
> subversion on my server (Debian etch, subversion version 1.4.2
> (r22196)), created the repository and edited the relevant files. The
> firewall (Shorewall) is set to allow svn traffic to and from the local
> network.
>
> On the server:
> drtwox_at_server:~$ mkdir svn
> drtwox_at_server:~$ svnadmin create svn
> drtwox_at_server:~$ vim svn/conf/svnserve.conf
> [general]
> anon-access = none
> auth-access = write
> password-db = passwd
> authz-db = authz
> realm = projects
>
> drtwox_at_server:~$ vim svn/conf/passwd
> [users]
> drtwox = password
>
> drtwox_at_server:~$ vim svn/conf/authz
> [projects:/home/drtwox/svn]
> drtwox = rw
>
>
>
>The above could be the offending file. I don't have a handy repository to test
>right now, but I believe it should be something like:
>[svn:projects/]
>
>That is, the header has two elements. The left side is the name of the
>repository and the right side is the path within that repository.
>
>
>
>
>
> drtwox_at_server:~$ svnserve -r /home/drtwox/svn/ -d
>
> On the client:
> drtwox_at_thinkpad:~$ mkdir project
> drtwox_at_thinkpad:~$ touch project/testfile.c
> drtwox_at_thinkpad:~$ rm -fr /home/drtwox/.subversion/auth/
> drtwox_at_thinkpad:~$ svn import project svn://server/home/drtwox/svn -m
> "Initial import"
> Authentication realm: <svn://server:3690> projects
> Password for 'drtwox': password
> svn: Authorization failed
>
> What am I doing wrong?
>
>
I suspect the problem is the authz file.

Isn't the path in the authz file relative to the top of the repo?

Ie, I think that

[/]
drtwox=rw

would work
Received on 2009-02-03 00:20:12 CET

This is an archived mail posted to the Subversion Users mailing list.