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

RE: only svn and file works

From: Faine, Mark <Mark.R.Faine_at_msfc.nasa.gov>
Date: 2004-11-01 22:18:39 CET

>Typically errors opening the SVN filesystem are due to permission
>errors. Become the same user as the web server runs as with >the same
>umask and try to run svn info file:///path/to/repo. If that fails,
>then permissions are likely to blame. Getting at >the repo using
>multiple access methods requires careful attention to permission and
>umasks.

$ svn info file:///export/home/repos/webapps/
svn: 'svn info' only works on working copy paths, not URLs

>General rules:

>- all users who use file:// or svn:// or svn+ssh:// need to be in the
>same group

file:// and svn:// works fine, only http/https do not work. Svn+ssh only
works from localhost, not through TortoiseSVN. I really do not care if svn
or svn+ssh work either, I only really need http/https to work.

>- the user that the web server runs as also needs to be in this group

The user the web server runs as (svn) is in the group (svn) and so is
everyone who is attempting to access the repository.

>- the directory that holds the repo must have the setgid bit on (unless
>you are on a BSD system where the behaviour this confers is the
>default)

$ cd /export/home/repos/webapps
$ ls -la
total 18
drwsrwx--- 7 svn svn 512 Oct 29 09:52 ./
drwxr-x--- 3 svn svn 512 Oct 29 09:52 ../
-rwsrws--- 1 svn svn 379 Oct 29 09:52 README.txt*
drwsrwx--- 2 svn svn 512 Oct 29 09:52 conf/
drwsrwx--- 2 svn svn 512 Oct 29 09:52 dav/
drwsrws--- 5 svn svn 512 Oct 29 09:52 db/
-rwsrws--- 1 svn svn 2 Oct 29 09:52 format*
drwsrwx--- 2 svn svn 512 Oct 29 09:52 hooks/
drwsrwx--- 2 svn svn 512 Oct 29 09:52 locks/

>- any operations on the filesystem containing the repo must make sure
>that they don't leave a file non-writeable by members of the group.
>This can happen if say your web server starts with a umask of 022,
>since it will leave DB log files with a permission of 0644 owned by the
>web server user.

What could cause the web server to start with a umask of 022? I mean
besides the user's shell setting umask on login to something other than 002.
All my user's umask are set to 002, including the user running the web
server (svn).

I'm at my wits end here because everyone keeps pointing me to permissions
yet I can find nothing wrong with permissions settings.

Thanks for your help

-Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 1 22:20:17 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.