Reputation: 1213
good evening.
After some investigation on the server - (spending many many hours with the security): I have a serious question: what is the usage of the SETGID bit on a server!?
many thanks for some help!
zero
whats the difference
drwxrwxrwx
drwxr-s---
i mean the SETGID bit!?
drwxrwxrwx
drwxr-s---
drwxr-xr-x 17 vhost vhost
^ Here!!!!!!!!!!!!!!!!!
special question: can i switch it on / of with filezilla
Upvotes: 1
Views: 1886
Reputation: 755026
When the setgid bit is set on a directory, all files (or directories) created in that directory will belong to the group that owns the directory, even if the effective GID of the process that creates the file is different. It can be useful to ensure that a team of people can edit the files in the directory because they all belong to the same group, and all the files in the directory belong to the group. You can override the default group with an explicit chgrp
command.
On MacOS X, all directories behave as if the setgid bit is set.
Upvotes: 3