XK0-006 Security Practice Question
A system administrator needs to configure sudo so that members of the 'wheel' group can execute any command without a password. Which line should be added to /etc/sudoers (using visudo)?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
%wheel ALL=(ALL) NOPASSWD: ALL
To allow wheel group to run all commands without a password, the line should be '%wheel ALL=(ALL) NOPASSWD: ALL'.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
%wheel ALL=(ALL) ALL
Why it's wrong here
This allows but requires password.
- ✗
wheel ALL=(ALL) NOPASSWD: ALL
Why it's wrong here
Missing % for group.
- ✓
%wheel ALL=(ALL) NOPASSWD: ALL
Why this is correct
Correct: % denotes group, NOPASSWD eliminates password prompt.
- ✗
%wheel ALL=NOPASSWD: ALL
Why it's wrong here
Missing (ALL) runas specification.
Go deeper
Related to this question
About these practice questions
One of 979 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.