Following this tutorial I have attempted to set up a subversion server. Here is what I did on the server:
And then I attempt an initial commit from another box:
colin@projhect:~$ cd /var
colin@projhect:/var$ sudo mkdir svn
colin@projhect:/var$ sudo svnadmin create svn
colin@projhect:/var$ sudo adduser --system --no-create-home --group svn
Adding system user `svn' (UID 114) ...
Adding new group `svn' (GID 121) ...
Adding new user `svn' (UID 114) with group `svn' ...
Not creating home directory `/home/svn'.
colin@projhect:/var$ sudo chown -R svn.svn /var/svn/
colin@projhect:/var$ sudo adduser colin svn
Adding user `colin' to group `svn' ...
Adding user colin to group svn
colin@projhect:/var$ id colin
uid=1000(colin) gid=1000(colin) groups=1000(colin),4(adm),20(dialout),24(cdrom),46(plugdev),104(lpadmin),115(admin),120(sambashare),121(svn)
I Googled this error and found that it is a permission issue (obviously). I tried the various methods of fixing this but none of them worked.
colin@hectop:~/projects$ svn import project/ svn+ssh://projhect.local/var/svn/project/head -m 'Initial import'
svn: Can't open file '/var/svn/db/txn-current-lock': Permission denied
Anyone have any ideas?