[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: permission issues with apache and subversion

From: Edward Ned Harvey <svn_at_nedharvey.com>
Date: Mon, 6 Dec 2010 09:32:23 -0500

> From: Nalini Kumar [mailto:nkumar_at_actiontec.com]
> "svn: Can't open file
> '/var/lib/svn/bcm/db/txn-current-lock': Permission
> $ ls -al /var/lib/svn
> total 16
> drwxr-xr-x 4 apache apache 4096 2010-12-02 18:21 .
> drwxrwxrwx 75 root root 4096 2010-12-06 01:09 ..
> drwxr-xr-x 7 apache apache 4096 2010-12-03 15:08 bcm

Of course, the more relevant information would be:
ls -ld /var /var/lib /var/lib/svn /var/lib/svn/bcm /var/lib/svn/bcm/db

Even so, I'm assuming you already did that, and the perms are right.

Does ubuntu use selinux? Or something else instead? What about ACL's?

I know it's certainly possible in other OSes, for selinux to block apache
from accessing something, even when the permission bits are set correctly.
By default, apache writing to /var/lib would be a suspicious activity...
Not sure if you installed these things from native packages (via apt or
synaptics package manager) ... If you didn't install using the native
packages, I would suggest you try. For this, and many other reasons.
Received on 2010-12-06 15:33:08 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.