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

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

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Dec 27, 2025, 15:12 UTC
Message-ID
<87ldiovtz9.fsf@igel.home>
In-Reply-To
<74793560-49ae-494e-afff-9b833dd25d1c@danisch.de>
On Dez 27 2025, Hadmut Danisch wrote:
Show 9 quoted lines
> Am 27.12.25 um 15:27 schrieb rsbecker@nexbridge.com:
>> 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.
>
>
> This does not solve the problem, since ACLs do not propagate into newly
> created subdirectories, as group ownership with S_ISGID flag does.

You can set the default ACL on a directory, which is then inherited by all newly created files.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Previous: rsbecker@nexbridge.comNext: Gabor Gombas
Message 6 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.