You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Brian Lewis <bs...@uark.edu> on 2007/04/04 12:31:31 UTC

group permissions

My users access repositories using the svn+ssh method. They're in groups
named identically to the repository names. After I svnadmin create
reponame, what is the proper way to chown reponame/ to prepare it to be
used by users in the reponame group?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: group permissions

Posted by "M. Rohrmoser" <mr...@gmx.de>.
Hi Brian,
Brian Lewis schrieb:
> My users access repositories using the svn+ssh method. They're in groups
> named identically to the repository names. After I svnadmin create
> reponame, what is the proper way to chown reponame/ to prepare it to be
> used by users in the reponame group?

I'm currently using just one common group (for multiple repos) and wrapper scripts for the binaries
svn and svnserve (http://svnbook.red-bean.com/nightly/en/svn.serverconfig.multimethod.html):

#!/bin/sh
umask 0012
export LC_ALL=POSIX
dir=/usr/local/bin
$dir/svn "$@"

But I'm clueless how to use a group per Repo.

Hope this helps a bit,
	Marcus

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: group permissions

Posted by Bob Hiestand <bo...@gmail.com>.
On 4/4/07, Brian Lewis <bs...@uark.edu> wrote:
> My users access repositories using the svn+ssh method. They're in groups
> named identically to the repository names. After I svnadmin create
> reponame, what is the proper way to chown reponame/ to prepare it to be
> used by users in the reponame group?

I do not know my setup to be correct.

I created a wrapper svnserve script:

#!/bin/sh
umask 002
/opt/svn/bin/svnserve.svn $*

For the repository permissions and ownership, I executed an
approximation of the following:

umask 007
svnadmin create ${repo}
chown -R svn:${group} ${repo}
chmod -R g-w $repo/conf $repo/hooks

Basically, this reserves the ability to write to conf and hooks to the
single 'svn' user, which is our admin user.

Thank you,

Bob
cd $repo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org