nerdexam
CompTIA

XK0-004 · Question #193

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 administr

The correct answer is A. Use visudo to edit the /etc/sudoers file and add network_administrators to the "wheel" group D. Add the network_administrators ALL=(ALL) NOPASSWD: ALL directive to the /etc/sudoers file. Once you add the group to the wheel group, you use the ALL directive which applies to the wheel group, allowing users to run ALL commands defined there, it should already be in the file, just

Security

Question

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

Options

  • AUse visudo to edit the /etc/sudoers file and add network_administrators to the "wheel" group
  • BUse vi to edit the /etc/sudo file and add network_administrators to the "wheel" group
  • CProvide all network_administrators with the "root" account password
  • DAdd the network_administrators ALL=(ALL) NOPASSWD: ALL directive to the /etc/sudoers file
  • EAdd the network_administrators =(ALL) NOEXEC: ALL directive to the /etc/sudoers file

How the community answered

(23 responses)
  • A
    83% (19)
  • B
    4% (1)
  • C
    9% (2)
  • E
    4% (1)

Explanation

Once you add the group to the wheel group, you use the ALL directive which applies to the wheel group, allowing users to run ALL commands defined there, it should already be in the file, just

Topics

#sudo#sudoers#NOPASSWD#privilege management

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice