Created
August 1, 2018 23:10
-
-
Save rms1000watt/53aa541b002b2eb8a9eab081638b3a87 to your computer and use it in GitHub Desktop.
Audit who did what to a file on Linux with Ausearch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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