The set-group-ID bit, commonly called setgid or SGID, has two important uses. On an executable regular file, it can change the effective group ID of the new process. On a directory, it makes newly created entries inherit the directory's group, which is especially useful for collaborative trees.
Permissions · Lesson 6
Setgid
Learn how set-group-ID affects executable credentials and group inheritance in shared directories.