CompTIA Linux+ (XK0-004) — Question 44
A junior systems administrator is tasked with providing the network_administrators group the ability to perform sudo without prompting for a password.
Which of the following steps should the administrator perform to accomplish this task? (Choose two.)
Answer options
- A. Use visudo to edit the /etc/sudoers file and add network_administrators to the ג€wheelג€ group
- B. Use vi to edit the /etc/sudo file and add network_administrators to the ג€wheelג€ group
- C. Provide all network_administrators with the ג€rootג€ account password
- D. Add the network_administrators ALL=(ALL) NOPASSWD: ALL directive to the /etc/sudoers file
- E. Add the network_administrators =(ALL) NOEXEC: ALL directive to the /etc/sudoers file
Correct answer: C, D
Explanation
The correct actions are to modify the /etc/sudoers file to include the directive that allows the network_administrators group to execute sudo commands without a password (D), and sharing the 'root' account password (C) is not a secure or recommended practice. Options A and B do not achieve the goal, and E offers a directive that does not relate to password-less sudo access.