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

Re: sharedrepository=group not working

From
Jamie Zawinski <jwz@jwz.org>
Date
Dec 4, 2018, 05:24 UTC
Message-ID
<903E1F42-3911-471D-B754-7592A5FD2CC7@jwz.org>
In-Reply-To
<20181204045051.GA23351@sigill.intra.peff.net>
On Dec 3, 2018, at 8:50 PM, Jeff King <peff@peff.net> wrote:
Show 7 quoted lines
> 
> I don't suppose this is leaving those incoming-* directories sitting
> around so we can inspect their permissions (it's suppose to clean them
> up, so I doubt it). If you're up for it, it might be interesting to
> patch Git to inspect the umask and "ls -l" the objects/ directory at the
> problematic moment. The interesting point is when we call into
> tmp-objdir.c:setup_tmp_objdir().
The problem was that Apache was setting my umask to 113! With that:
+ ls -ldF ./objects/incoming-w7agmb/pack objects/incoming-w7agmb
ls: cannot access ./objects/incoming-w7agmb/pack: Permission denied
drw---S--- 2 apache cvs 4096 Dec  3 21:14 objects/incoming-w7agmb/
error: remote unpack failed: unable to create temporary object directory
With 002 it succeeds:
+ ls -ldF ./objects/incoming-IbGS6h/pack objects/incoming-IbGS6h
drwx--S--- 3 apache cvs 4096 Dec  3 21:19 objects/incoming-IbGS6h/
drwxrwsr-x 2 apache cvs 4096 Dec  3 21:19 ./objects/incoming-IbGS6h/pack/
So I fixed my umask and got it working, but maybe a test for "your umask is dumb" is worthwhile.
Thanks for your help!

-- Jamie Zawinski https://www.jwz.org/ https://www.dnalounge.com/

Previous: Jeff King
Message 6 of 6 in “sharedrepository=group not working”
  1. Jamie ZawinskiDec 4, 2018
  2. Jeff KingDec 4, 2018
  3. Jamie ZawinskiDec 4, 2018
  4. Jamie ZawinskiDec 4, 2018
  5. Jeff KingDec 4, 2018
  6. Jamie ZawinskiDec 4, 2018

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.