You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by "Jens-D. Neppe" <jn...@linux-fuer-alle.de> on 2004/08/13 07:27:01 UTC

forcing strange umasks

Hello!

I would like to mention that I did not use a wrapper script 
(like descibed in the subversion book) to force the umask 
set to 002. I simply made an addition to the /etc/profile 
(using debian woody) like this

alias svnserve="umask 002; svnserve"

. Please let me know if this is complete nonsense. But ist 
really seems to work. Perhaps this way to define umasks 
could be added to the book?

Tank you,

Jens

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

Re: forcing strange umasks

Posted by Marc Haisenko <ha...@webport.de>.
On Friday 13 August 2004 19:48, Jens-D. Neppe wrote:
> Hello!
>
> Is there no configuration file automatically read by SSH I
> can put an alias entry into?
>
> Jens

"man" is your friend :-)

Re: forcing strange umasks

Posted by "Jens-D. Neppe" <jn...@linux-fuer-alle.de>.
Hello!

Is there no configuration file automatically read by SSH I 
can put an alias entry into?

Jens

* Marc Haisenko <ha...@webport.de> [040813 16:56]:
> On Friday 13 August 2004 09:27, Jens-D. Neppe wrote:
> > Hello!
> >
> > I would like to mention that I did not use a wrapper 
script
> > (like descibed in the subversion book) to force the 
umask
> > set to 002. I simply made an addition to the 
/etc/profile
> > (using debian woody) like this
> >
> > alias svnserve="umask 002; svnserve"
> >
> > . Please let me know if this is complete nonsense. But 
ist
> > really seems to work. Perhaps this way to define umasks
> > could be added to the book?
> >
> > Tank you,
> >
> > Jens
> 
> Well, this works only if svnserve is called by a shell 
which interpreted the 
> /etc/profile first, which is not always the case. For 
example, according to 
> its man page, bash only interprets the /etc/profile when 
it's invoked as an 
> "interactive" shell or when the --login option is given. 
Interactive means 
> both stdin and stdout are connected to a terminal and 
"-c" was not given.
> 
> So I guess when you're using svn co svn+ssh://... your 
/etc/profile will not 
> get interpreted, and thus your umask won't be in effect.
> 
> C'ya,
> 	Marc
> 
> -- 
> Marc Haisenko
> Systemspezialist
> Webport IT-Services GmbH
> mailto: haisenko@webport.de
> 

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

Re: forcing strange umasks

Posted by Marc Haisenko <ha...@webport.de>.
On Friday 13 August 2004 09:27, Jens-D. Neppe wrote:
> Hello!
>
> I would like to mention that I did not use a wrapper script
> (like descibed in the subversion book) to force the umask
> set to 002. I simply made an addition to the /etc/profile
> (using debian woody) like this
>
> alias svnserve="umask 002; svnserve"
>
> . Please let me know if this is complete nonsense. But ist
> really seems to work. Perhaps this way to define umasks
> could be added to the book?
>
> Tank you,
>
> Jens

Well, this works only if svnserve is called by a shell which interpreted the 
/etc/profile first, which is not always the case. For example, according to 
its man page, bash only interprets the /etc/profile when it's invoked as an 
"interactive" shell or when the --login option is given. Interactive means 
both stdin and stdout are connected to a terminal and "-c" was not given.

So I guess when you're using svn co svn+ssh://... your /etc/profile will not 
get interpreted, and thus your umask won't be in effect.

C'ya,
	Marc

-- 
Marc Haisenko
Systemspezialist
Webport IT-Services GmbH
mailto: haisenko@webport.de

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