medium
Single Answer
0

Mikaela wants to log all sudo activity under individual user accounts. What first step should she take to ensure that she captures privileged use like this?

Answer Options

A

Prevent the use of sudo su -.

B

Add all users to the sudoers file.

C

Remove all users from the sudoers.

D

Disable sudo.

Correct Answer: A

Explanation

Ensure that users cannot bypass logging by switching to the root user using sudo su -. Instead, users who need the ability to perform privileged actions should be added to the sudoers list and then logged as themselves performing the actions. Adding all users is likely an overly broad action, whereas removing all users would not allow individual logging under their accounts, nor would they have rights to take administrative actions. Disabling sudo doesn't allow administrative tasks except as root, which defeats this requirement as well.