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

Re: Sharing SVN-Repository between Linux/x86 and WinNT

From: Brian Mathis <bmathis_at_directedge.com>
Date: 2003-12-30 02:47:24 CET

Cool.

Someone can always change thier path though. You might want to rename
'/usr/bin/svn' to something like '/usr/bin/svn.bin', then make your
script call that, just to hide it a little more.

Jamie Wilkinson wrote:

>Sure.
>
>The default umask on our fileserver (where the repository is being
>stored) is 077, which means that any file that gets created defaults to
>unreadable and unwritable to anyone other than the person who created
>it.
>
>We use the 'devel' group to grant access to the repository, and so the
>reposutory itself is group-owned by devel and all the directories have
>the set-group-id bit set, so that any new files also get created with
>the devel group -- but this doesn't force read/write to the devel group.
>
>So, to make sure everyone's umask allows the rest of the group to read
>and write to the subversion database after they've made a commit, I use
>the following scripts in /usr/local/bin on the fileserver, which just
>happens to be in the PATH before /usr/bin.
>
>-- snip /usr/local/bin/svn --
>#!/bin/sh
>umask 002
>exec /usr/bin/svn "$@"
>-- snip --
>
>-- snip /usr/local/bin/svnserve --
>#!/bin/sh
>umask 007
>exec /usr/bin/svnserve "$@"
>-- snip --
>
>

-- 
Brian Mathis
http://directedge.com/b/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 30 02:48:06 2003

This is an archived mail posted to the Subversion Users mailing list.