SVN Commit Error

svn

I'm trying to allow multiple users to access/commit to my repo and I'm running into permission issues (as expected). I followed the steps in the SVN book and I'm still getting this error:

svn: Commit failed (details follow):
svn: Can't create directory '/usr/home/peter/svn/db/transactions/16-1.txn': Permission denied

I've set the SUID bit on the db directory, wrote a wrapper script which sets the umask to 002 then executes the 'svn' command and set group permissions to rwx on all directories in svn/

My Script:

#!/bin/sh
umask 002
/usr/local/bin/svn "$@"

What am I missing? Thanks.

Best Answer

Whatever user/group your svn server process runs as needs to have rwx permissions on everything in the /usr/home/peter/svn directory. So if your svn server runs as the svn user/svn group, you need to run:

chgrp -R svn /usr/home/peter/svn; chmod -R g+rwx /usr/home/peter/svn