Article 6N3C5 Something prevents setgid to take effect

Something prevents setgid to take effect

by
czezz
from LinuxQuestions.org on (#6N3C5)
I have set "setgid" 2775 on /mnt/repo dir
Code:find /mnt/repo -type d -exec chmod 2775 {} \;

stat /mnt/repo/
File: /mnt/repo/
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fc01h/64513d Inode: 147492 Links: 3
Access: (2775/drwxrwsr-x) Uid: ( 0/ root) Gid: ( 2003/mygroup)
Access: 2024-05-27 15:24:03.116488198 +0200
Modify: 2024-05-27 15:24:00.451156247 +0200
Change: 2024-05-27 15:24:00.451156247 +0200
Birth: 2024-05-27 15:23:01.667118980 +0200The problem is that if I try to create any new file or dir in /mnt/repo/ by the user belonging to "mygroup" it is created as: 2755/drwxr-sr-x but instead i would expect: 2775/drwxrwsr-x

It does NOT work on my Debian machine.
But it does work on my Ubuntu machine.

Im getting out of ideas what might be wrong?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments