Results 1 to 2 of 2

Thread: Honeypot files & directories

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default Honeypot files & directories

    Hello everyone, How can I make Linux inform me by email or by logging whenever particular file(s) or directory(ies) is/are opened?
    Last edited by AJN; 13th December 2011 at 04:50 PM.

  2. #2
    Member
    Join Date
    Feb 2008
    Posts
    64
    Thanks
    0
    Thanked 6 Times in 5 Posts
    Rep Power
    7

    Default

    Quote Originally Posted by AJN View Post
    Hello everyone, How can I make Linux inform me by email or by logging whenever particular file(s) or directory(ies) is/are opened?
    Split the task out into two processes: event detection and alerting. The first depends on 0) the file (type, ownership and permissions, etc), 1) what your distribution offers in terms of kernel (dnotify, inotify, audit) and userland (inotify tools, incron, FUSE, cron daemon, active audit tools) and 2) any other your requirements like say near real time triggering or not. The second depends on how events are generated: if there's system or daemon logs then the alerting process needs to filter the log for the right message at the right interval, if there's a dedicated log file then a marker takes care of that (see the logging component of the deprecated PortSentry tool for what I mean) else stdout (inotify tools, FUSE loggedfs) might indicate a new message and an audit tool like Samhain send emails itself. (And if this reply is thought to be kind of long it serves to indicate only verbose and precise questions elicit tailored responses.)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Listing all Files & Directories & Sub
    By eawedat in forum Shell scripting
    Replies: 2
    Last Post: 24th August 2011, 03:17 AM
  2. print all files and directories names
    By eawedat in forum Shell scripting
    Replies: 4
    Last Post: 6th September 2010, 01:03 AM
  3. Replies: 5
    Last Post: 30th March 2010, 07:14 PM
  4. Linux list directories and files
    By raj in forum Getting started tutorials
    Replies: 0
    Last Post: 5th May 2007, 02:05 AM
  5. UNIX ls only directories (display only dirs and no files)
    By chiku in forum Solaris/OpenSolaris
    Replies: 1
    Last Post: 21st October 2006, 01:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •