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

Re: file perms in the db dir

From: Steve Greenland <steveg_at_lsli.com>
Date: 2004-09-21 00:07:19 CEST

On Mon, Sep 20, 2004 at 03:18:40PM -0500, Davy Durham wrote:

> So how do I make sure it is 002 for both the websvn php scripts (I can
> easily edit that) AND svnserve (which I can't edit without recompiling
> and I didn't compile svnserve in the first place, but I suppose I
> could)? Seem like a good config parameter or something if it isn't
> already. Maybe I could exec the real svnserve from a bash script where
> I can set it.

Bingo.

On my svn server, I have this script as /usr/local/bin/svnwrap:

#!/bin/sh
# Generic wrapper for svn commands to enforce correct umask
umask 002
cmdname=`basename $0`
/usr/bin/$cmdname "$@"

I also have these links in /usr/local/bin:

lrwxrwxrwx 1 root staff 7 Sep 3 08:38 svn -> svnwrap*
lrwxrwxrwx 1 root staff 7 Sep 3 08:40 svnversion -> svnwrap*
lrwxrwxrwx 1 root staff 7 Sep 3 08:40 svnshell -> svnwrap*
lrwxrwxrwx 1 root staff 7 Sep 3 08:40 svnserve -> svnwrap*
lrwxrwxrwx 1 root staff 7 Sep 3 08:40 svnlook -> svnwrap*
lrwxrwxrwx 1 root staff 7 Sep 3 08:40 svndumpfilter -> svnwrap*
lrwxrwxrwx 1 root staff 7 Sep 3 08:40 svnadmin -> svnwrap*
lrwxrwxrwx 1 root staff 7 Sep 3 08:40 svn_load_dirs -> svnwrap*
-rwxr-xr-x 1 root staff 174 Sep 3 11:25 svnwrap*

Getting all these wrapped ensures that any access, either via svn:,
svn+ssh:, or just local access doesn't screw up the permissions (we
don't use webdav.)

Steve

>
> Then again.. (as I was just looking around on google) I found:
> http://svnbook.red-bean.com/svnbook-1.0/ch06s05.html which might answer
> all my questions :)
>
> Thanks,
> Davy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

-- 
"Outlook not so good." That magic 8-ball knows everything! I'll ask
about Exchange Server next.
                           -- (Stolen from the net)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 21 00:08:33 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.