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

Re: can't create directory '/usr/local/svnrepos...'

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Tue, 13 May 2008 21:12:39 -0500

On May 13, 2008, at 2:43 PM, Eugene Luzgin wrote:

> I was struggling for a longest time with the following error message:
>
> svn: Commit failed (details follow):
> svn: Can't create directory '/usr/local/svnrepos/db/transactions/
> 1-1.txn':
> Permission denied
>
> I had SVN installed on RHEL4.
> I set ownership and permissions on SVN repository for apache user
> correctly and yet I was still getting permission error.
> I was browsing Internet but coudn't find the solution of my
> problem. Then I accidently stumbled on the source of my problem:
> It was SELinux: http://en.wikipedia.org/wiki/Security-Enhanced_Linux
> SELinux is enabled by default on RHEL4 and denies access for apache
> daemon to file system.
>
> Disabling SELinux removed my problem: echo 0 >/selinux/enforce
> See http://www.crypt.gen.nz/selinux/disable_selinux.html for more
> information.
>
> Hope this information will save time and headache for other people.

How to set up your repository permissions correctly, including
allowing access when SELinux is enabled, is documented in the FAQ:

http://subversion.tigris.org/faq.html#reposperms

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-14 04:13:06 CEST

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.