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

Re: Git newbie question: permissions

From
SMSamuel Lucas Vaz de Mello <samuellucas@datacom.ind.br>
Date
Oct 9, 2008, 21:05 UTC
Message-ID
<48EE7232.5080107@datacom.ind.br>
In-Reply-To
<1b5a37350810091320l72ae0a86m39db4258c9f4827e@mail.gmail.com>
Ed Schofield wrote:
Show 8 quoted lines
> I don't think I specified "--shared=group" when initializing the
> repository. Afterwards I manually set all files to have 660
> permissions, dirs as 770, and set the group ownership to "webdev", but
> I probably made a mistake by not setting the setgid bit on
> directories. Now there are some objects directories with 755
> permissions and different group ownership (the default groups of the
> other users).
>   
Hi Ed!
I'm also a newbie here and I have a very similar setup to yours.

The only difference is that my repository was created using git-cvsimport and afterwards I used git-config to set core.sharedrepository=1 and manually set up the permissions.

I also got objects created with the users' default group, but for now I just changed the deafault group for those users until I find a better solution.

Another issue with this setup: if I run git-gc in the shared repo, it recreate the files in logs/refs/heads with 644 permissions, which prevents users to push until I manually fix the permissions.

Someone else have faced these kind of problems?
Regards,
 - Samuel
Previous: Ed SchofieldNext: Marc Weber
Message 2 of 6 in “Git newbie question: permissions”
  1. Ed SchofieldOct 9, 2008
  2. Samuel Lucas Vaz de MelloOct 9, 2008
  3. Marc WeberOct 9, 2008
  4. Samuel TardieuOct 9, 2008
  5. Ed SchofieldOct 9, 2008
  6. Samuel Lucas Vaz de MelloOct 10, 2008

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.