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…
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)- A62% (21)
- B18% (6)
- D12% (4)
- E3% (1)
- F6% (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
Community Discussion
No community discussion yet for this question.