CompTIA Linux+ XK0-006 (V8) Practice Question

An administrator deployed a custom compiled binary located at /opt/diag/tool that requires root privileges to perform hardware diagnostics. To allow junior administrators to run the utility, the file's owner was set to root, and its permissions were set using chmod 4755 /opt/diag/tool. When a junior administrator executes the binary, it fails with errors indicating insufficient privileges. The permissions on the file appear correct (-rwsr-xr-x), and the junior administrator can successfully execute the file. Which of the following is the MOST likely reason the setuid permission is not being honored?

  • The filesystem containing /opt/diag is mounted with the nosuid option.

  • The file must be owned by the junior administrator instead of root.

  • The setgid bit must also be set on the file for setuid to work.

  • The sticky bit needs to be set on the /opt/diag directory.

CompTIA Linux+ XK0-006 (V8)
Troubleshooting
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