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

Re: setting umask

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-02-02 09:02:47 CET

On Feb 1, 2007, at 06:58, Mariana Draper wrote:

> I want to set umask correectly so all the group has permissions to
> access the repository. As far as i understood, i have to set "umask
> 002" in the svn startup file so the first thing the svn does is set
> umask and the runs the program.
> My question is... which is the file where i have to add the line
> "umask 002" ?

You move your svn (or svnserve) binary out of the way and install a
script named svn (or svnserve) which sets the umask and then calls
the real program that you moved. See the book:

According to http://svnbook.red-bean.com/en/1.1/ch06s05.html :

> So the next step beyond setting up a common group for repository
> users is to force every repository-accessing process to use a sane
> umask. For users accessing the repository directly, you can make
> the svn program into a wrapper script that first sets umask 002 and
> then runs the real svn client program. You can write a similar
> wrapper script for the svnserve program, and add a umask 002
> command to Apache's own startup script, apachectl. For example:
>
> $ cat /usr/bin/svn
>
> #!/bin/sh
>
> umask 002
> /usr/bin/svn-real "$@"

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 2 09:03:19 2007

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.