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

Re: commit with owner and group of my repository as unix user

From: Sonal Uphale <suphale_at_savvion.com>
Date: 2007-05-25 06:52:44 CEST

> Let's say that your repository is "/var/svn" (you've previously done
> "svnadmin create /var/svn") and your Apache server runs as the user
> "www" in the group "www". Then I think the best way to set it up is
> probably:
> chown -R www:www /var/svn
> chmod -R 700 /var/svn
> find /var/svn -type f -print0 | xargs -0 chmod 600
> Now everything is owned by the user under which Apache runs,
> directories have 700 (a.k.a. "rwx") permission, and files have 600
> (a.k.a. "rw-") permission. This ensures that the only way to access
> the repository is through Apache, so that you don't have to worry
> about anybody being able to get access to data in the repository by
> copying the revision files off the server directly.

I have repository under /home/sbmrepos/svn.
It is owned by sbmrepos.
In apache httpd.conf, I have made entry as
User sbmrepos
Group sbmrepos

<Location /svn>
        DAV svn
        SVNParentPath /home/sbmrepos/svn

After this I restarted the httpd server and when I try to access server it
gives error:
<m:human:readable errcode="13">Could not open the requested SVN

Apache log is :
Thu May 24 21:31:36 2007] [error] [client] (20014)Internal error:
Can't open file '/home/sbmrepos/svn/sbmrepos/format': Permission denied
[Thu May 24 21:31:36 2007] [error] [client] Could not fetch
resource information. [500, #0]
[Thu May 24 21:31:36 2007] [error] [client] Could not open the
requested SVN filesystem [500, #13]
[Thu May 24 21:31:36 2007] [error] [client] Could not open the
requested SVN filesystem [500, #13]

From the forum mails, it is permissions issue, but can anybody please
elaborate on it.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri May 25 06:49:40 2007

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.