Question 630
A Linux administrator needs to resolve the following condition: An organization wants audit records for changes made to /etc/shadow rather than relying on shell history. What should the engineer do first?
Explanation
Correct Answer
Shell history is not a reliable record of privileged file writes. This action corrects the relevant condition. Verify that a controlled shadow update produces an attributable audit record.
Incorrect Answers
That remedy is appropriate when a host sends security logs to journald but older records disappear after reboot. It targets journal storage mode can be volatile unless persistent journal storage is configured; here shell history is not a reliable record of privileged file writes, so it does not directly repair the observed fault.
This change addresses a remote syslog collector receives no new records although rsyslog is installed. The present problem is different: shell history is not a reliable record of privileged file writes. Applying the alternative would leave the key cause unresolved.
It would correct a separate failure, a service account's actions are absent from audit logs after a privilege escalation. In this environment, shell history is not a reliable record of privileged file writes; the indicated alternative does not meet the acceptance test.





CompTIA Linux+ (XK0-006) Practice Tests