Skip to main content

You can use auditd and add a rule for that file to be watched:

auditctl -w /path/to/that/file -p wa 

Then watch for entries to be written to /var/log/audit/audit.log.

You can use auditd and add a rule for that file to be watched:

auditctl -w /path/to/that/file -p wa 

You can use auditd and add a rule for that file to be watched:

auditctl -w /path/to/that/file -p wa 

Then watch for entries to be written to /var/log/audit/audit.log.

Source Link
Stéphane Chazelas
  • 586.2k
  • 96
  • 1.1k
  • 1.7k

You can use auditd and add a rule for that file to be watched:

auditctl -w /path/to/that/file -p wa