I know how setgid works, but I don't know why it is designed, is there any example to illustrate what problems it solves?
Purpose of setgid Directory in Linux/Unix
linuxposixsetgidunix
Related Topic
- Difference Between Double and Single Square Brackets in Bash – Scripting Shell POSIX
- Linux – Check Environment Variables of a Running Process on Unix
- Sudo or acl or setuid/setgid
- Ubuntu – What’s the purpose of kslowd
- Linux Web Server – Proper Permissions for Website Files and Folders
- Linux – Why is ‘chmod -R 777 /’ Destructive?
Best Answer
While a setgid file/binary might not be obviously useful I definitely find the setgid bit very useful applied on directories. Assuming you are parts of different working groups, which each has their own unix (permission) groups. Surely you would then want to put the setgid bit on project folders, making sure that the right group ownership is applied when you create new files, and thereby allowing your colleagues in that project group access to those files?