Re: Git-daemon messing up permissions for gitweb
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Jun 10, 2006, 21:41 UTC
- Message-ID
- <Pine.LNX.4.64.0606101439530.5498@g5.osdl.org>
- In-Reply-To
- <20060610213051.GB5825@steel.home>
On Sat, 10 Jun 2006, Alex Riesen wrote:
> > ~/.ssh/rc > > AFAIK, it was always there.
Note that since umask is a per-process flag, and only inherited from parents to children, not the other way around, if the rc file is run as a separate shell script (and I assume it is) instead of "sourced" from the the shell that actually executes the programs you run, then this won't help at all.
Try:
sh -c "umask 0777 ; umask" ; umask
to see in more graphic ("textual") detail what I mean.Linus