Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
251 views
in Technique[技术] by (71.8m points)

ubuntu - 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.)

question from:https://stackoverflow.com/questions/8458960/svn-permission-denied-txn-current-lock

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Repository folder on file system must be owned or at last to have read/write permission by the same linux user that your svn or apache via web-dav is working on...

In my case it was:

$ chown -R www-data:www-data /svn/reponame

But in some other case, it might be different, like

$ chown -R someuser:somegroup /svn/reponame

So replace someuser:somegroup with proper values.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...