nerdexam
CompTIA

XK0-006 · Question #140

A systems administrator must provide privileged access to a specific user in a Linux system. Which of the following commands should the administrator use?

The correct answer is A. usermod -aG sudo username. Adding the user to the sudo group grants privileged access by allowing the user to execute commands with elevated permissions through sudo, which is the standard and supported method on Linux systems.

Services and User Management

Question

A systems administrator must provide privileged access to a specific user in a Linux system. Which of the following commands should the administrator use?

Options

  • Ausermod -aG sudo username
  • Becho username >> /etc/sudoers.d/privileged
  • Cvisudo username
  • Dsed -i 's/username/root/' /etc/passwd

How the community answered

(47 responses)
  • A
    91% (43)
  • B
    2% (1)
  • C
    2% (1)
  • D
    4% (2)

Explanation

Adding the user to the sudo group grants privileged access by allowing the user to execute commands with elevated permissions through sudo, which is the standard and supported method on Linux systems.

Topics

#sudo#privilege escalation#usermod#access control

Community Discussion

No community discussion yet for this question.

Full XK0-006 Practice