Which Users Have Root-Level Command-Line Access? XK0-005 Audit Question
Short answer
AB Carl Lee
Question

Key Takeaways
This question tests your ability to distinguish between UID 0, sudo entries, home directory placement, and limited sudo commands—Carl's UID 0 grants root equivalence, while Mallory's root home directory is a distractor.
In the CompTIA XK0-005 exam, candidates must identify users with root-level command-line access from /etc/passwd and /etc/sudoers. The community consensus is that Carl (UID 0) and Lee (full sudo privileges) are the correct choices.
Common mistake: A common mistake is selecting Mallory because her home directory is /, but home directory location does not confer root privileges. Another mistake is selecting Bob for having a sudo entry, but his NOPASSWD:SYSADMIN entry only grants access to specific commands.
Expert Analysis
Why the Answer Is Correct
Carl has a UID of 0 in /etc/passwd, identical to root, which gives him full root-level command-line access regardless of his home directory or shell. Lee has the line lee ALL=(ALL) ALL in /etc/sudoers, granting him permission to run any command as any user, including root. Community comments with high likes confirm this reasoning, noting that sharing the root UID is equivalent to logging in as root and that Lee's sudoers entry grants full sudo privileges.
Why the Other Options Are Wrong
Mallory has / as her home directory, but this does not grant any administrative rights; she can only view and manipulate files within that directory if her permissions allow. Bob has a sudoers entry bob ALL=NOPASSWD: SYSADMIN, which restricts him to running only commands in the SYSADMIN group (e.g., tcpdump) without a password, not full root-level command-line access. Eve has no entry in either file indicating any special privileges.
Community Comment Notes
A highly upvoted comment explains that Carl shares the same UID as root and Lee has sudoers privileges, while Mallory's root home directory is a trap because it does not imply root access. Another comment notes that Bob's NOPASSWD:SYSADMIN entry only gives specific command access, not full root-level CLI access. One user initially voted BE but later analysis and the majority vote confirm AB as the correct answer.
Official Reference
- https://man7.org/linux/man-pages/man5/passwd.5.html
- https://man7.org/linux/man-pages/man5/sudoers.5.html
- https://www.comptia.org/certifications/linux
These links open the official vendor documentation in a new tab.
Exam Strategy
Remember that root-level command-line access is granted either by UID 0 or by a sudo entry that allows running all commands as root. Watch for distractors like a user whose home directory is / or a sudo entry restricted to specific commands.
Community Votes
100% of anonymous learners picked answer AB. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 6 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 6
Show 1 more comment
-
riddie78 👍 1NOT UNDERSTANDING THE PROVIDED ANSWERS ON THIS ONE... can anyone explain?
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
lee ALL = (ALL) ALLin the/etc/sudoersfile, granting full root-level command-line access. - Bob has the entrybob ALL = NOPASSWD: SYSADMIN, allowing root-level access to the/usr/sbin/tcpdumpcommand without requiring a password.