setgid

A permission bit that makes an executable run with the file's group identity, or makes new files in a directory inherit that directory's group.

A flawed setgid program can let users act with a privileged group's access.

In more detail

On an executable it grants the program the file's group privileges, with the same risks as setuid on a smaller scale. On a shared directory it is a convenience: files created inside belong to the project group rather than each user's primary group. In octal it is the 2 in a leading digit, as in 2770.

Related terms

Taught in

References

Certification courses