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

Re: git init --bare --shared does not set group for some files/dirs

From
ILIlari Liusvaara <ilari.liusvaara@elisanet.fi>
Date
Jul 18, 2010, 12:08 UTC
Message-ID
<20100718120820.GA20761@LK-Perkele-V2.elisa-laajakaista.fi>
In-Reply-To
<201007181314.41894.ville.skytta@iki.fi>
On Sun, Jul 18, 2010 at 01:14:41PM +0300, Ville Skyttä wrote:
Show 12 quoted lines
> Hello,
> 
> git init --bare --shared does not set the group for some files.  See below; it 
> did set g+s for all dirs, and did set the group for the root dir, config, 
> HEAD, and objects, but failed to set group for branches, description, hooks, 
> info, and refs.  I discussed/reproduced this on #git today with drizzd and was 
> instructed to post here.
> 
> In particular, I hit a problem with this and the refs dir; members of the 
> desired group (gituser in my example) can not write into it.  I can obviously 
> fix this locally with chgrp, but for which files/dirs should the gituser group 
> be set, and are there some files/dirs that it is intentionally not set?

AFAIK, there are none that intentionally don't have it (at least usually every file and directory there has the repository group as owner). The usual quick and dirty rules are:

- For fetching, +r for all regular files, +rx for all directories.
- For pushing, +r for all regular files (but +rw for regular files under
/logs/ if any), +rwx for all directories.
BTW: '/branches/' is used by pre-1.5 remotes stuff and pretty much totally
obsolete.
-Ilari
Previous: Ville Skyttä
Message 2 of 2 in “git init --bare --shared does not set group for some files/dirs”
  1. Ville SkyttäJul 18, 2010
  2. Ilari LiusvaaraJul 18, 2010

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.