Thread (8 messages) 8 messages, 5 authors, 2026-01-02

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

From: Hadmut Danisch <hidden>
Date: 2025-12-27 14:44:11

On Sat, Dec 27, 2025 at 02:56:57PM +0100, Michal Suchánek wrote:
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 container user is part of the group.

And that's the problem: 

"ensure the container user is part of the group" is what the S_ISGID flag on directories is good for: It ensures that newly created directories inherit their parent's group. Unix administration basics. 

And this is the bit git clears and breaks this mechanism. 


regards

Hadmut

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help