Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I tried to commit my modified file on SVN (RapidSVN). I got the following error:

Error while performing action: Commit failed (details follow): 
Can't open file '/var/www/svn/repos/db/txn-current-lock': Permission denied

Can anyone help in solving this? Any suggestions are appreciated.

share|improve this question
    
Good Question Supravat –  Amit Bera Oct 22 at 11:11

2 Answers 2

up vote 2 down vote accepted

I dont think you have this file /var/www/svn/repos/db/txn-current-lock on your machine. Have you checked whether it exists on your system or not. How can you give permission on files which does not belong to your system.

It might be issue which server admin should take care of.He should give proper permission to files.Ask them.

Check this http://www.jamison.org/2011/09/13/fixing-the-svn-txn-current-lock-permission-denied-error-in-subversion/

share|improve this answer
    
If this answer is helpful then please mark it as accepted –  Kingshuk Deb Dec 31 '13 at 12:50
    
point ta gift korchi..Upvote from me –  Amit Bera Oct 22 at 11:12

You need to run the command(s) as root.

  1. Open the terminal
  2. Run the following command:

sudo su

3 . Then run the commands you want.

The following commands that you execute will get run as root, and hopefully you will get permission access the '/var/www/svn/repos/db/txn-current-lock' file.

share|improve this answer
    
When I try to get permission through terminal, getting the following error root@supravat:/# sudo chmod 777 -R /var/www/svn/repos/* sudo: /etc/sudoers.d is world writable root@supravat:/# –  u2460470 Dec 31 '13 at 11:23
    
Run "sudo su". Then just run the command that you want, without sudo. Just: chmod 777 -R /var/www/svn/repos/* –  The Phone Dec 31 '13 at 11:28
    
The above command is run but getting error still. –  u2460470 Dec 31 '13 at 11:45
    
Using sudo for this is not a fix but more of a hammer approach. –  dibs Sep 25 at 3:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.