CompTIA Linux+ XK0-006 (V8) Practice Question

A security audit finds that the executable /usr/local/bin/custombackup is owned by root and has the set-user-ID bit set:

-rwsr-xr-- 1 root users 27829 Jul 31 10:42 /usr/local/bin/custombackup

An ordinary user (UID 1001) launches the program, then inspects its credentials in /proc//status and sees:

Uid:    1001   0   0   0
Gid:     100  100 100 100

(The four values shown for Uid are, in order, the real, effective, saved-set and filesystem user IDs.)

Moments later the program successfully opens /etc/shadow, a file that is readable only by root. Which identifier shown in the Uid line was actually used by the kernel to determine that the process could read that file?

  • The real user ID (value 1001)

  • The real group ID (value 100)

  • The effective user ID (value 0)

  • The saved set-user-ID (value 0)

CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot