git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-receive-pack needs to set umask(2)

From
Alex Riesen <fork0@t-online.de>
Date
May 29, 2006, 21:28 UTC
Message-ID
<20060529212830.GA4074@limbo.home>
In-Reply-To
<Pine.LNX.4.64.0605290956190.5623@g5.osdl.org>
Linus Torvalds, Mon, May 29, 2006 19:00:42 +0200:
Show 14 quoted lines
> 
> I realize that you already found the solution (Core.SharedRepository), 
> but:
> 
> On Mon, 29 May 2006, Salikh Zakirov wrote:
> > 
> > 2) I have 'umask 002' in my ~/.profile. Somehow, it does not help,
> > because ~/.profile is not read on non-interactive SSH sessions
> > (to verify that, just try to do 'ssh somehost umask')
> 
> The ".profile" thing is indeed read only for interactive tasks.
> 
> So use ".bashrc" instead.
> 
Will not work:
$ man bash
...
       When  an  interactive  shell  that is not a login shell is
       started, bash reads and executes commands from  ~/.bashrc,
       if  that  file exists. ...
Besides, not everyone has bash as their login shell.
Reading man sshd:
     $HOME/.ssh/rc
             If this file exists, it is run with /bin/sh after reading the
             environment files but before starting the user's shell or com­
             mand.  It must not produce any output on stdout; stderr must be
             used instead.  If X11 forwarding is in use, it will receive the
             "proto cookie" pair in its standard input (and DISPLAY in its
             environment).  The script must call xauth(1) because sshd will
             not run xauth automatically to add X11 cookies.
and
     /etc/ssh/sshrc
             Like $HOME/.ssh/rc.  This can be used to specify machine-specific
             login-time initializations globally.  This file should be
             writable only by root, and should be world-readable.
This guaranteed to work (at least for ssh).
Previous: Linus TorvaldsNext: Johannes Schindelin
Message 7 of 9 in “git-receive-pack needs to set umask(2)”
  1. git-receive-pack needs to set umask(2)Michael Richardson, May 28, 2006
  2. Jakub NarebskiMay 28, 2006
  3. Johannes SchindelinMay 29, 2006
  4. Salikh ZakirovMay 29, 2006
  5. Shawn PearceMay 29, 2006
  6. Linus TorvaldsMay 29, 2006
  7. Alex RiesenMay 29, 2006
  8. Johannes SchindelinMay 29, 2006
  9. Petr BaudisMay 28, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.