Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Whilst trying to commit some files to SVN, we're suddenly all getting this error

    Can't move '/usr/local/svn/articles/db/txn-protorevs/2002-8.rev' 
to '/usr/local/svn/articles/db/revs/2/2003': Permission denied

I checked the permissions in the repository, and they look the same as all our other repositories, yet this is the only repo that causes the error.

Any ideas how I can fix this?

SVN is running as root on Linux via svnserve, FWIW.

share|improve this question
up vote 4 down vote accepted

With the repositories I manage, the repository contents themselves are owned by apache:apache. Trying to do something as root without using sudo -u apache usually creates this situation for me. A good chown -R apache.apache {repo root} will usually fix it, as you indicated.

My guess is that you performed some function via the filesystem as someone other than root.

share|improve this answer

Turns out we were just missing group write permissions on some of the subdirectories in the remote repository (revs, transactions, etc.) Still not sure how they got mucked up in the first place, though.

share|improve this answer

Make sure the SVN is started with the same user as the repository has been created.

share|improve this answer

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.