How can I see which applications have accessed a certain file within a given time period on Linux?

Posted by Nikolaidis Fotis on Server Fault See other posts from Server Fault or by Nikolaidis Fotis
Published on 2012-03-20T23:50:50Z Indexed on 2012/03/21 5:32 UTC
Read the original article Hit count: 479

Is it possible on Linux to find out which applications have accessed a certain file in the last 24 hours?

I've come with a few possible solutions:

  1. Watch lsof. It works, but it's constrained to watch's granularity.
  2. inotify sounds good... but no information of the application accessing the file is provided.
  3. auditd may be useful, but I haven't checked that yet.

What ways can I see which applications have accessed a certain file within a given time period?

© Server Fault or respective owner

Related posts about files

Related posts about audit