Services and User Management

A shared directory /srv/reports is owned by root:analysts. A compiled binary, /usr/local/bin/archive, is owned by root:analysts and has the setgid bit set (mode 2755). The user kim, whose primary group is staff, runs the binary, and it creates a file in /srv/reports. Which statement correctly describes the identifiers of the running process?

Show the answer

Correct answerD. The effective GID is analysts, while the real GID remains staff

The setgid bit on a compiled executable makes the process's effective GID the file's group (analysts), which is used for permission checks, while the real GID still identifies the invoking user's primary group (staff). Treating both as changed confuses real and effective identifiers.