Skip to content

Instantly share code, notes, and snippets.

@rms1000watt
Created August 1, 2018 23:10
Show Gist options
  • Save rms1000watt/53aa541b002b2eb8a9eab081638b3a87 to your computer and use it in GitHub Desktop.
Save rms1000watt/53aa541b002b2eb8a9eab081638b3a87 to your computer and use it in GitHub Desktop.
Audit who did what to a file on Linux with Ausearch
#!/usr/bin/env bash
# Courtesy of: https://www.cyberciti.biz/tips/linux-audit-files-to-see-who-made-changes-to-a-file.html
auditctl -w /etc/passwd -p war -k password-file
ausearch -f /etc/passwd -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment