nerdexam
CompTIA

XK0-005 · Question #1597

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…

The correct answer is A. Carl C. Mallory. Root-level access can be granted in two ways: a UID of 0 in /etc/passwd (which grants root privileges regardless of the username), or an entry in /etc/sudoers (or /etc/sudoers.d/) that allows unrestricted sudo access (e.g., ALL=(ALL) ALL or NOPASSWD: ALL). Based on the…

Security

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

Exhibit

XK0-005 question #1597 exhibit

Options

  • ACarl
  • BLee
  • CMallory
  • DEve
  • EBob
  • FAlice

How the community answered

(27 responses)
  • A
    63% (17)
  • B
    4% (1)
  • D
    19% (5)
  • E
    11% (3)
  • F
    4% (1)

Explanation

Root-level access can be granted in two ways: a UID of 0 in /etc/passwd (which grants root privileges regardless of the username), or an entry in /etc/sudoers (or /etc/sudoers.d/) that allows unrestricted sudo access (e.g., ALL=(ALL) ALL or NOPASSWD: ALL). Based on the referenced file contents, Carl and Mallory have been identified as holding root-level access through one or both of these mechanisms. The other users (Lee, Eve, Bob, Alice) either have no sudoers entry or have restricted, non-root-equivalent permissions.

Topics

#sudoers#User Management#/etc/passwd#Linux Security

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice