Go to TogaWare.com Home Page.
GNU/Linux Desktop Survival Guide
by Graham Williams
Google

Setup Using svnserver


On a laptop (Ganesha I update my documents (e.g., myproject) from an SVN server running on Belinos (106.7). It is not automatically set up yet, but on Belinos I run the svnserver as my usual user account with:

belinos$ svnserver -d

Then on Ganesha (106.5) I checked out the project with:

ganesha$ svn co svn://belinos/var/svn/myproject/trunk

But I get authorization errors on commit!

$ svn commit -m "Add a note"
svn: Commit failed (details follow):
svn: Authorization failed

So I went into the file /var/svn/myproject/conf/svnserve.conf to change the defaults. First, by everyone has read access to the project, so let's fix that:

[general]
anon-access = none

Okay, so now I get on Ganesha (106.5):

$ svn commit -m "Add a note"
svn: Commit failed (details follow):
svn: No access allowed to this repository

Let's now introduce a passwd file to use, and stick with the default:

password-db = passwd

So now I get:

$ svn commit -m "Add a note"
Authentication realm: <svn://belinos:3690> a3ga432d-g81e-1310-b159-ac818d885622
Password for 'kayon':

This does not accept any of the passwords typed since I've not yet set up the file. So lets create the passwd file:

[users]
kayon = mysecret

Now it all works:

$ svn commit -m "Add a note"
Authentication realm: <svn://belinos:3690> a3ga432d-g81e-1310-b159-ac818d885622
Password for 'kayon':
Sending        Makefile
Transmitting file data .
Committed revision 21.

Okay, so now that this part works, lets set things up to work systemwide as a server.

Copyright © 1995-2008 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware.