Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to update a working copy as a different user to the owner. The user is in the same group as the owner and the working copy is set to 755 throughout but I still get

svn: Can't open file '/path/to/working/copy/.svn/lock': Permission denied
share|improve this question

2 Answers 2

up vote 2 down vote accepted

Are the directory permissions set properly as well? I guess it's because it can't create the file because the dir doesn't have write permissions.

share|improve this answer
Permissions on the .svn folder needed to 775 not 755 – RMcLeod Jun 19 '12 at 10:10

In case of the lock, it may be just an unclean state. So, you can first, optionally run:

sudo svn cleanup

Then you can reset the permissions on the metadata files (in older Subversions there were many .svn folders):

find -name .svn | xargs chmod -R 777 

If you have spaces in names (which is a bad idea), you can still run:

find -name .svn | while read f; do echo $f; sudo chmod -R 777 "$f"; done

I'm not sure about the durability of this solution (if SVN won't change the permissions back, after some operations), but then you just need to reapply this solution.

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.