Question:medium

When the setgid bit is set on an executable file, any user can execute it using the permissions of the group of such file. (True/False)

Show Hint

Use setgid to ensure programs run with consistent group privileges, regardless of the user executing them.
Updated On: Jan 14, 2026
Show Solution

Solution and Explanation

True
The setgid (Set Group ID) permission on an executable file grants users the ability to run that file using the owning group's permissions, irrespective of their own current group. This functionality is advantageous in environments with multiple users requiring standardized access to shared resources or group-specific privileges.
For instance, a file owned by the `project` group with the setgid bit enabled will be executed with `project` group privileges by any user.
Was this answer helpful?
0