You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Mariana Draper <mu...@yahoo.com> on 2007/02/01 12:58:44 UTC

setting umask

Hi,

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" ?

Thank you very much,
Mariana.




 
____________________________________________________________________________________
Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

Re: setting umask

Posted by Ryan Schmidt <su...@ryandesign.com>.
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