I've just set up an SVN repository on a Server running CentOS 6. I followed the instructions here and things were going fairly smoothly.
Until I tried to import my initial file structure
svn import /path/to/wc http://svn.host.com/svn/repos -m "Init repo"
gave me the following
svn: Can't open file '/home/podsvn/svn/repos/db/txn-current-lock': Permission denied
svn import /path/to/wc file:///path/to/repository -m "Init Repo" Works fantastically. not useful for working remotely with the repo.
A bit of searching led me to see that it was a permissions problem, but any configuration of permissions for the repo failed:
This is the default repo permissions following the tutorial above, which fails:
-rw-rw-r-- 1 apache apache 229 Jul 24 08:58 README.txt drwxrwxr-x 2 apache apache 4096 Jul 24 09:17 conf/ drwxrwsr-x 6 apache apache 4096 Jul 24 08:58 db/ -r--r--r-- 1 apache apache 2 Jul 24 08:58 format drwxrwxr-x 2 apache apache 4096 Jul 24 08:58 hooks/ drwxrwxr-x 2 apache apache 4096 Jul 24 08:58 locks/
Then I added root, apache, and my main user (called poduser which created the repo via
svnadmin create repos) to a new group called svn, still fails (even after logging in and out from ssh):
-rw-rw-r-- 1 apache svn 229 Jul 24 08:58 README.txt drwxrwxr-x 2 apache svn 4096 Jul 24 09:17 conf/ drwxrwsr-x 6 apache svn 4096 Jul 24 08:58 db/ -r--r--r-- 1 apache svn 2 Jul 24 08:58 format drwxrwxr-x 2 apache svn 4096 Jul 24 08:58 hooks/ drwxrwxr-x 2 apache svn 4096 Jul 24 08:58 locks/
chmod -R g+w ./. (Has the
ls -la results you'd expect) I still get the Permission Denied error.
It seems like when I run
checkout, it's attempting to access the repository as a user other than root, apache, or poduser.
Possibly it's attempting to work as the user that logged into the repo (set up in /etc/svn-auth-conf via the tutorial). However, the SVN user I set up there is separate from any accounts on the actual server, right? I shouldn't have to worry about matching up SVN users and server users?