Security
A security team requires a record of every write or attribute change to /etc/sudoers, tagged so the events can be found later with ausearch. Which command adds a rule that meets this requirement?
Show the answer
Correct answerD. auditctl -w /etc/sudoers -p wa -k sudoers_change
A watch rule (-w) with permissions w and a logs writes and attribute changes, and -k sets the search key for ausearch -k. The -p rx variant watches reads and executes, not modifications. -W removes a watch, and -a expects a list and action rather than a path.