nerdexam
CompTIA

XK0-005 · Question #602

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. The users who have root-level command-line access are those who have either the same user ID (UID) as root, which is 0, or the ability to run commands as root using sudo. Based on the /etc/passwd and /etc/sudoers files, the users who meet these criteria are: Carl: Carl has 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.)

Options

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

How the community answered

(34 responses)
  • A
    62% (21)
  • B
    18% (6)
  • D
    12% (4)
  • E
    3% (1)
  • F
    6% (2)

Explanation

The users who have root-level command-line access are those who have either the same user ID (UID) as root, which is 0, or the ability to run commands as root using sudo. Based on the /etc/passwd and /etc/sudoers files, the users who meet these criteria are: Carl: Carl has the same UID as root, which is 0, as shown in the /etc/passwd file. This means that Carl can log in as root and execute any command with root privileges. Mallory: Mallory has the ability to run commands as root using sudo, as shown in the /etc/sudoers file. The line ALL = (ALL) ALL means that any user can run any command as any other user, including root, by using sudo. Mallory can also use the root shell /bin/bash as her login shell, as shown in the /etc/passwd file.

Topics

#Linux user management#Sudo configuration#Root access#System auditing

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice