Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 '14 at 11:11
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

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 '14 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:/# – Supravat 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/* – DevRandom Dec 31 '13 at 11:28
The above command is run but getting error still. – Supravat Dec 31 '13 at 11:45
Using sudo for this is not a fix but more of a hammer approach. – dibs Sep 25 '14 at 3:51

Your Answer


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.