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

Re: anon-access is killing me!

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Mon, 25 Aug 2008 20:44:37 +0200

Gre7g Luterman wrote:
> Long time fan of TortoiseSVN, first time poster...
>
> Over the years, I've set up almost a dozen different svn repositories on
> my Ubuntu box that I serve with svnserve. In each, I've required
> authorized access for both read and write privileges, until today.
>
> Today, I made a new repository that I'd like to allow anyone to read,
> but require a user/pass to make changes. So, the [general] section of my
> conf/svnserve.conf includes:
>
> anon-access = read
> auth-access = write
>
> I connected to this repository with TortoiseSVN and did a check-out.
> Since no autothorization was required, it didn't ask me for a user/pass.
> Then I added files and tried to do a commit.
>
> Instead of asking me for a password now, it just gives me:
>
> Error: Commit failed (details follow):
> Error: Authorization failed

It's 'authorization' failed, not 'authentication' failed.
So your user was properly authenticated, but has no access rights.

> Grr. Yes, I know I need to enter my user/pass, but how do I convince
> TortoiseSVN to ask me for them? Since anonymous access is okay, it
> doesn't think of this on its own.

If your server is configured properly, it will ask for authentication.
I assume that you've allowed the anon user for write access, but then in
the auth section you have not listed the anon user (of course) to have
write access. You need to prevent the anon user from authenticating for
write access.

I've never set up an svnserve like this, so I can't really help you
here. You should ask on the Subversion mailing list for help.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net

Received on 2008-08-25 20:44:59 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.