exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 218 discussion

Actual exam question from CompTIA's XK0-005
Question #: 218
Topic #: 1
[All XK0-005 Questions]

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.)

  • A. Carl
  • B. Lee
  • C. Mallory
  • D. Eve
  • E. Bob
  • F. Alice
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
HappyDay030303
1 week, 4 days ago
Selected Answer: AB
A. Carl has a UID of 0, same as root B. Lee has full SUDO access, same as root
upvoted 2 times
...
044f354
7 months ago
Selected Answer: AB
[from /etc/passwd] root :x:0:0::/home/root:/bin/bash root has a UID of 0 carl :x:0:503::/home/carl:/bin/sh Carl also has a UID of 0, which gives him root-level access equivalent to the root user. [from /etc/sudoers] lee ALL = (ALL) ALL Lee is granted full root access through the sudo command
upvoted 1 times
...
IFBBPROSALCEDO
10 months, 3 weeks ago
Selected Answer: BE
B (Lee) and E (Bob) are correct because: - **Lee** has the entry `lee ALL = (ALL) ALL` in the `/etc/sudoers` file, granting full root-level command-line access. - **Bob** has the entry `bob ALL = NOPASSWD: SYSADMIN`, allowing root-level access to the `/usr/sbin/tcpdump` command without requiring a password.
upvoted 1 times
...
Monty97
1 year, 1 month ago
Selected Answer: AB
Answer is Carl, as they share the same ID as the root, and Lee has the sudoers privileges. The confusion is that Mallory has the root directory listed as her home directory. However, this does not necessarily mean she has root level command line access, but she can view and manipulate files and directories within.
upvoted 4 times
...
makuziker
1 year, 2 months ago
Selected Answer: AB
I think it is AB. Lee has an entry in sudoers, allowing him to run any command on the system lee ALL=(ALL) ALL Carl has the userId 0, the same as root. That sounds like a terrible idea to me, he should NOT share the same userId as root. That is like logging into the system as root user. Nothing here indicates to me that Mallory has admin level access.
upvoted 3 times
Monty97
1 year, 1 month ago
The confusion is that Mallory has the root directory listed as her home directory. However, this does not necessarily mean she has root level command line access, but she can view and manipulate files and directories within.
upvoted 2 times
...
...
riddie78
1 year, 3 months ago
NOT UNDERSTANDING THE PROVIDED ANSWERS ON THIS ONE... can anyone explain?
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago