SGID em diretórios
Pré-requisito:
Grupos "sales", "hr", "web" estarem criados.
Com o usuário root
Exemplo:
# mkdir -p /depts/{sales, hr, web}
# chgrp sales /depts/sales
# chgrp hr /depts/hr
# chgrp web /depts/web
# chmod u=rwx,g=rwx,o= /depts/*
# chmod g+s /depts/*
# touch /depts/sales/teste.txt
# touch /depts/hr/teste.txt
# touch /depts/web/teste.txt
# ls -la /depts/sales/
# ls -la /depts/hr/
# ls -la /depts/web/