I have a folder on my RHEL 9 server that gets deleted every few days, but I don’t know which process or user is responsible.
I’d like to log all events related to this folder, particularly deletions.
I came across a tool called auditd, which seems like it could help, but I'm not sure how to configure it to monitor this specific folder.
Is auditd the best option for this task, or is there a better tool or script I could use to track and log deletions?
Is this enough?
auditctl -w /path/to/myfolder -p rwa -k rule_watch_folder