View previous topic :: View next topic |
Author |
Message |
KarlisRepsons Apprentice
Joined: 03 Nov 2008 Posts: 229 Location: Latvia
|
Posted: Wed Jan 21, 2009 2:22 pm Post subject: dump all filesystem access? |
|
|
How can I dump all filesystem (files / directories) access in some file or stdout?
lsof shows just for a moment and I can't see what is necessary to be seen... |
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Fri Jan 23, 2009 7:38 am Post subject: |
|
|
Moved from Off the Wall to Networking & Security. |
|
Back to top |
|
|
iarwain Apprentice
Joined: 25 Sep 2003 Posts: 253
|
Posted: Fri Jan 23, 2009 9:50 pm Post subject: |
|
|
You can keep a log of when a file has been read, written, deleted, etc. in specified directories with audit. |
|
Back to top |
|
|
KarlisRepsons Apprentice
Joined: 03 Nov 2008 Posts: 229 Location: Latvia
|
Posted: Sat Jan 24, 2009 8:47 pm Post subject: |
|
|
Well, at the moment I am watching things like this:
echo 1 > /proc/sys/vm/block_dump
watch -n1 'dmesg | tail -n 30'
It shows some info... Also I am almost done with a small C++ code, which uses Inotify, but was more for fun, because Inotify doesn't show the cause of file system event. Audit looked like too monstrous for what I needed. |
|
Back to top |
|
|
|