Which Users Have Root-Level Command-Line Access? XK0-005 Audit Question
A Linux administrator generated a list of users who have root-level command-line access to the Linux server to meet an audit requirement. The administrator analyzes the following /etc/passwd and /etc/sudoers files: Which of the following users, in addition to the root user, should be listed in the audit report as having root-level command-line access? (Choose two.) - 
Community Votes
100% of anonymous learners picked answer AB. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
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.
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.
Community Discussion (6 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
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 linelee 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 entrybob 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
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.
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.