Courseiva
SecuritymediumMultiple SelectObjective-mapped

XK0-006 Security Practice Question

A Linux administrator needs to configure sudo access for members of the 'wheel' group to run any command. Which two steps are required? (Choose TWO.)

⚠ Common exam trap

A common mix-up: candidates confuse the setuid bit on sudo (which is already set) with a configuration step, or think that editing SSH config or running syntax checks alone grants sudo access, when in fact both the sudoers rule and group membership are required.

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

Uncomment the line '%wheel ALL=(ALL) ALL' in /etc/sudoers using visudo

The line '%wheel ALL=(ALL) ALL' in /etc/sudoers grants all members of the 'wheel' group permission to execute any command as any user. This line must be uncommented using visudo, which locks the file to prevent concurrent edits and performs syntax validation before saving. Option D is correct because users must be added to the 'wheel' group using 'usermod -aG wheel username' for the sudoers rule to apply to them.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Uncomment the line '%wheel ALL=(ALL) ALL' in /etc/sudoers using visudo

    Why this is correct

    Grants sudo access to wheel group members.

  • Set the setuid bit on /usr/bin/sudo

    Why it's wrong here

    sudo already has setuid; not needed.

  • Run 'sudo visudo -c' to check syntax

    Why it's wrong here

    Checks syntax but does not enable access.

  • Add users to the 'wheel' group using usermod -aG wheel username

    Why this is correct

    Adds users to the wheel group.

  • Edit /etc/ssh/sshd_config to allow wheel group

    Why it's wrong here

    SSH config is unrelated.

About these practice questions

This XK0-006 question is part of Courseiva's 979-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.