Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dump all filesystem access?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
KarlisRepsons
Apprentice
Apprentice


Joined: 03 Nov 2008
Posts: 229
Location: Latvia

PostPosted: Wed Jan 21, 2009 2:22 pm    Post subject: dump all filesystem access? Reply with quote

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
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Fri Jan 23, 2009 7:38 am    Post subject: Reply with quote

Moved from Off the Wall to Networking & Security.
Back to top
View user's profile Send private message
iarwain
Apprentice
Apprentice


Joined: 25 Sep 2003
Posts: 253

PostPosted: Fri Jan 23, 2009 9:50 pm    Post subject: Reply with quote

You can keep a log of when a file has been read, written, deleted, etc. in specified directories with audit.
Back to top
View user's profile Send private message
KarlisRepsons
Apprentice
Apprentice


Joined: 03 Nov 2008
Posts: 229
Location: Latvia

PostPosted: Sat Jan 24, 2009 8:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum