I moved a Subversion repository from a Windows box to a UNIX machine. In both environments I’ve handled authentication through Apache.
On the UNIX box after the move, I could checkout source but received the following error when committing anything:
svn: Can't open file '/home/brianly/svn/test/db/txn-current-lock': Permission denied
It seemed to be a UNIX permission issue and the following command resolves the issue:
chmod -R 777 /home/brianly/svn/test
Now, I’ve opened this up to be writable by all users (right?). Is there a security issue with doing this? Should I have changed the owner to be the apache user (daemon) instead? What’s the best practice for setting the file system permissions?
What you should do is change the directory owner to the apache process user, e.g.
You need to run
chownas root (directly or throughsudo).You can see who the user is with (if it’s linux):
And don’t forget to change it back to 755 or 700 or whatever.