You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Noah Spurrier <no...@noah.org> on 2007/10/23 01:08:01 UTC

svnserve apparently trying to authenticate even with svn+ssh

Someone (not me :-) upgraded our svn binaries to 1.4.4 today and now everyone
is getting this error when they try to update or commit:

     svn: Not authorized to open root of edit operation

OK, so that seems like it might be a problem authentication with svnserve,
but the problem is that everyone in the office uses svn+ssh. As I understand
it svn+ssh starts "svnserve -t" on the server which bypasses authentication
(considered pre-authehenticated). I do use svnserve with authz so that some
contractors can get access to only certain parts of the repository. On a
hunch I edited the svnserve.conf file and I commented out every line. And
that worked! Now, everyone can update and commit via svn+ssh. The
svnserve.conf file looks like this now:

     #[general]
     #password-db = passwd
     #realm = employees and contractors only.
     #anon-access = none 
     #auth-access = write
     #authz-db = authz

The only problem is that this makes no sense. Everyone is using svn+ssh, so
svnserve shouldn't even check authentication even for newer versions of SVN.

The repository was originally created with svnadmin 1.3.2. The svn binaries
appear to have been upgraded to 1.4.4. I'm not totally sure this is due to
the svn binary upgrade. I was not involved in the upgrade, but I'm the one
fixing it. It's possible that someone touched the svnserve.conf file, but I
don't think so.

-- 
  Noah Spurrier | email: noah@noah.org | http://www.noah.org/wiki/engineering 
-------------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svnserve apparently trying to authenticate even with svn+ssh

Posted by Erik Huelsmann <eh...@gmail.com>.
On 10/23/07, Noah Spurrier <no...@noah.org> wrote:
> Someone (not me :-) upgraded our svn binaries to 1.4.4 today and now everyone
> is getting this error when they try to update or commit:
>
>     svn: Not authorized to open root of edit operation
>
> OK, so that seems like it might be a problem authentication with svnserve,
> but the problem is that everyone in the office uses svn+ssh. As I understand
> it svn+ssh starts "svnserve -t" on the server which bypasses authentication
> (considered pre-authehenticated). I do use svnserve with authz so that some
> contractors can get access to only certain parts of the repository. On a
> hunch I edited the svnserve.conf file and I commented out every line. And
> that worked! Now, everyone can update and commit via svn+ssh. The
> svnserve.conf file looks like this now:
>
>     #[general]
>     #password-db = passwd
>     #realm = employees and contractors only.
>     #anon-access = none
>     #auth-access = write
>     #authz-db = authz
>
> The only problem is that this makes no sense. Everyone is using svn+ssh, so
> svnserve shouldn't even check authentication even for newer versions of SVN.

Ah, but see, it *does* make sense: this is the difference between
authentication and authorization. The user is considered
pre-authenicated (meaning svnserve doesn't need to re-establish
identity), but svnserve will apply authorization rules: which user is
allowed which operations?

What you commented out are not only authentication lines, but also
authorization lines, meaning svnserve will allow read and write
operations on all paths (instead of the limited ruleset applied when
the 'authz-db=' line is *not* commented out).

HTH,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org