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

Repository file permissions

From: Sancho Neves-Graca <sancho_at_neves-graca.org>
Date: 2003-10-14 18:40:19 CEST

Hello,

I have a question about file ownership regarding DB.

To access a SVN repository hosted on Mac OS X 10.2 stored in the
filesystem at /usr/local/svn/repos1 and served through Apache, I
changed ownership of /usr/local/svn/repos1 to the user www and group
www:

        % sudo chown -R www /usr/local/svn/repos1

        % sudo chgrp -R www /usr/local/svn/repos1

Otherwise, DB would issue the following error:

        Berkeley DB error while opening environment for filesystem
/usr/local/svn/repos1/db: Permission denied

Whenever I want to use svnadmin I change ownership of the directory and
its contents with

        % sudo chown -R <uid> /usr/local/svn/repos1

        % sudo chgrp -R <gid> /usr/local/svn/repos1

where <uid> and <gid> are replaced with the IDs of my user.

The problem with this approach is that it prevents me from setting a
post-commit hook for incremental repository dumps: the script will be
run as user www and therefore result in the DB error

% svnadmin dump /usr/local/svn/repos1 --incremental > /tmp/repos1.dump
subversion/libsvn_fs/bdb/bdb-err.c:58: (apr_err=160029)
svn: Berkeley DB error
svn: Berkeley DB error while opening environment for filesystem
/usr/local/svn/repos1/db:
Permission denied

It seems to me that the DB files should be owned by a certain group
that would allow both Apache access and execution of the DB process.

Sincerely, Sancho Neves-Graca

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 14 18:41:26 2003

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.