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

RE: Git destroys u+s and g+s directory modes

From
rsbecker@nexbridge.com <rsbecker@nexbridge.com>
Date
Dec 27, 2025, 14:27 UTC
Message-ID
<008901dc773c$f05508c0$d0ff1a40$@nexbridge.com>
In-Reply-To
<aU_lqe2Z47STv68O@kitsune.suse.cz>
On December 27, 2025 8:57 AM, Michal Suchánek wrote:
Show 16 quoted lines
> On Sat, Dec 27, 2025 at 03:37:51AM +0100, Hadmut Danisch wrote:
> > Hi,
> >
> > (please respond to my e-mail as well, not just to the list, I'm not
> > subscribed),
> >
> >
> > I do have a problem with git 2.43.0 (ubuntu server 24.04.3) and
> > directory
> > modes:
> >
> >
> > I do need my git repo (owned by me) to be readable by a system user
> > (running a rootless podman container).
> 
> When you want it to be readable you do not need any special permission
bits.
> 
> You can set the directories and files to be readable by group, and ensure
the
Show 5 quoted lines
> container user is part of the group.
> 
> You are porbably looking for core.sharedRepository configuration option.
> 
> If git is particularly unhappy accessing a readonly repository and the
container is
> short-lived you can add an overlay over the repository when creating the
> container.

There is an option with ubuntu: Access Control Lists (ACLs). These provide override security for directories that might assist in your process without having to worry about git security settings. It might be worth looking into this option.

Randall
Previous: Michal SuchánekNext: Hadmut Danisch
Message 3 of 9 in “Git destroys u+s and g+s directory modes”
  1. Hadmut DanischDec 27, 2025
  2. Michal SuchánekDec 27, 2025
  3. rsbecker@nexbridge.comDec 27, 2025
  4. Hadmut DanischDec 27, 2025
  5. rsbecker@nexbridge.comDec 27, 2025
  6. Andreas SchwabDec 27, 2025
  7. Gabor GombasDec 27, 2025
  8. Hadmut DanischDec 27, 2025
  9. Jeff KingJan 2, 2026

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.