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

File permissions for this setup

From: Chris Rose <offby1_at_gmail.com>
Date: 2004-11-04 17:13:30 CET

Hello, all

I'm a bit new to svn in specific, and unix adminning in general, and
I'm running into a few issues setting up my repositor[y|ies] for both
local and remote access via httpd

Ideally what I want to have is a repository owned by a local non-root
user who is in the group svn and who can create repositories easily,
and modify the access control file, although not the users file
(that'll be root-only).

I then want the httpd server to be able to access and operate on this
repository just as fully.

the httpd server runs as user/group apache, but is also in group svn.

At present, I use the following script to make a repository (otherwise
the group perms are not set adequately for what i *think* is the right
way to do this)



if [ -e $1 ]; then
        echo "Directory already exists"
        exit 1

svnadmin create $1
cd $1
chgrp --quiet -R svn .
# chmod -R g+ws .
if [ -e db ] && [ -d db ]; then
        chmod g+ws db
        chmod g+w db/*


The thing is, there must be something busted somewhere, because when I
run cvs2svn on a fresh repository, created with the above script, and
run as the user owning it, I start getting this:

<m:human-readable errcode="160029">
Could not open the requested SVN filesystem

Obviously not the ideal.

I googled for the error, but the best I was able to find was a
suggestion to run svnadmin recover after killing the httpd process,
but that didn't work for me -- the error still persists.

The permissions in the db directory (where I've had the most troubles)
are -rw-rw-r-- for username:svn on all files.

all directories in the repository are drwxr-sr-x except db, which is drwxrwsr-x

format and README.txt are -r--r--r-- and -rw-r--r-- respectively.

All this may or may not be moot, if there's a different way to be
setting this up.

Basically, I want to be able to -- as "user" -- create a repo freely,
with the right permissions for at LEAST httpd access, although
svn+ssh:// access would be really nice. Just not necessary.

Can someone help with this?

Chris R.
Not to be taken literally, internally, or seriously.
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Nov 4 17:14:16 2004

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.