January 2018
Intermediate to advanced
376 pages
8h 45m
English
Now, let's say that we want to see when someone changes the /etc/passwd file. (The command that we'll use will look a bit daunting, but I promise that it will make sense once we break it down.) Look at the following code:
[donnie@localhost ~]$ sudo auditctl -w /etc/passwd -p wa -k passwd_changes[sudo] password for donnie:[donnie@localhost ~]$ sudo auditctl -l-w /etc/passwd -p wa -k passwd_changes[donnie@localhost ~]$
Here's the breakdown: