Source: https://linuxconfig.org/how-to-use-special-permissions-the-setuid-setgid-and-sticky-bits
setgid
chmod 2775 $DIR
OR
chmod g+s $DIR
Note with the 2775 permission, the 2 is the setgid bit and the 755 are
regular permissions for user-rwx, group-rwx, all-rx