Search code examples
svnubuntuubuntu-server

SVN permission denied - txn-current-lock


I have just set up svn on my ubuntu server. I have a my user I can login to. The problem is that whenever I try to make a change on the file structure I get a permission denied error.

Can't open file '/var/www-svn/db/txn-current-lock':
Permission denied

My repo is in /var/www-svn and the permission on that folder is drwxr-xr-x for user AND group svn (I am bad with permissions so I don't know if that's correct). My user that I log in to on svn is in the svn group, yet I cant change the file structure. What am I doing wrong? It works if I change the user and group of the folder to my user that I login too.

In svnserve.conf, anon-access is set to none and auth-access is set to write.

(I changed the owner of /var/www-svn by typing sudo chown -R svn:svn www-svn inside /var directory.)


Solution

  • The svnserve deamon ran under my user, not as root. I killed the svnserve processes running under my user and restarted it as root. It now works.