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

Re: Repository Permission Question

From: Marc Haisenko <haisenko_at_webport.de>
Date: 2004-01-21 16:34:44 CET

On Wednesday 21 January 2004 17:19, Anthony E. Glover wrote:
> I have a repository that I am accessing via svn+ssh. Each of my end
> users has their own account. The repository is owned by a single CM
> user. I have chgrp'ed the repository to the group that is common between
> my end users and the CM user. I have also chmod'ed the repository such
> that the group has 'rw' on every file and directory. I have also set the
> gid bit on every diretory in order to maintain the group on every file.
> The last thing I am having trouble with is that when a new file is
> created by one of the end users in the repository, e.g. one of the log
> files in the db directory, it does not have rw access for the group. I
> know this is the result of the umask. Is there a way to set the umask
> for all of my end users such that it will take affect for the
> non-interactive connections created by svn+ssh? From previous problems,
> I know that PATH and LD_LIBRARY_PATH type things are not picked up
> during a non-interactive shell; so, I'm assuming (maybe wrongly) that
> the umask would not be picked up either. Any suggestions? Is the
> approach I am taking in setting the permissions correct?
> Thanks,
> Tony

Add the following line to the /etc/profile:

umask 002

or edit the /etc/login.defs file and set


This sets -rw-rw-r-- permissions on newly created files.

You could also do something like this in /etc/profile:

TMP=`groups | grep mysvngroup`
if [ ! -z "$TMP" ] ; then
        umask 002

This would only set the umask for users in group "mysvngroup" ;-)

Marc Haisenko
Webport IT-Services GmbH
mailto: haisenko@webport.de
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 21 17:35:15 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.