Skip to content
XK0-006
Security
medium
Question 8 of 18

An administrator needs to allow a junior administrator to run only the command systemctl restart apache2 as root using sudo, without granting broader root access. Which sudoers entry is correct?

Ajunior ALL=(ALL) ALL
Bjunior ALL=(root) /usr/bin/systemctl restart apache2
Cjunior ALL=NOPASSWD: /usr/bin/systemctl
Djunior root = systemctl

Educational Content — CertQnA practice questions are written against official exam objectives, covering the same domains tested on the real exam. All content is original and independent — not actual exam questions, not affiliated with any certification vendor. Learn more about our content policy

Discussion

Be the first to share your understanding of this concept

⚠️ Discussion is for concept clarification only. Do not share or request actual exam questions or answers.

Sign in to join the discussion