LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 03-31-2005, 03:09 PM   #1
dman65
Member
 
Registered: Sep 2003
Posts: 61

Rep: Reputation: 15
File Access Logging


Is there any kind of system option or tool that allows for the creation of a log that indicates all file opens, closes, writes, and creates?

For security purposes I need to be able to track everyone who opens files on a specific directory.
 
Old 03-31-2005, 03:54 PM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
It would be nice if you could specify this for a specific directory, but the quickest answer is no, you can't. The middle answer is you can turn on logging for all writes, reads, etc, but the files gets really really big, see syslog features, man syslog. The long answer is to create your own shell and have it log those specifics.
 
Old 04-07-2005, 08:14 AM   #3
dman65
Member
 
Registered: Sep 2003
Posts: 61

Original Poster
Rep: Reputation: 15
Thanks for the response. Can you tell me what part of the system and what level would report opening and creating files? I don't know if this is kernel or daemon or what and I can't seem to find it in the documentation.

Thanks
 
Old 04-08-2005, 02:12 PM   #4
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
You're wanting to look at man syslog ( will probably give you the C calls for it, then at the bottom say something like See Also syslog(3), so man 3 syslog ), you'll also want to look at syslog.conf as a man page as well as in /etc

The man syslog.conf should get you on the right direction, it's just been too long since I've played around with this I don't remember any of the specifics, just the generals.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND - logging file not found buskmann Linux - Networking 5 05-02-2005 12:33 PM
keystroke logging to file? musicman_ace Linux - Software 3 12-12-2004 07:49 AM
logging failed access to security objects tbeaton Linux - Security 1 06-24-2004 06:05 PM
Logging Directory access vl7 Linux - Security 1 11-26-2003 02:17 PM
Help with Logging to a file jester_69 Linux - General 3 06-21-2002 09:32 AM


All times are GMT -5. The time now is 06:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration