Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Logs for the changes done to a file?


    I wanted to know where can I find logs for the changes done to a file on a mounted directory.

    Thanks in advance!

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    There is the timestamp, which tells you when the last change happened.
    User/group limits the number of persons being able to.
    And depending on whether this mounted directory is local or remote, you can check the logs of e.g. nfs or samba on who accessed the file.

    On a plain file, you cannot see the content changes.
    You would need to put that file under revision control, e.g. subversion or git.
    You must always face the curtain with a bow.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    As Irithori said. In addition, the system stamps a file with the last access date/time/user/group information. You cannot tell what was changed in the file, but you can tell who has accessed and/or changed it, and when.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. $spacer_open
  5. #4
    Linux Newbie nplusplus's Avatar
    Join Date
    Apr 2010
    Charlotte, NC, USA
    As much as I plug this project, I should probably be listed in its credits somewhere, but have a look here: Syscheck ? OSSEC v2.7.0 documentation. Particularly the report_changes setting.


  6. #5
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    3rd rock from sun - Often seen near moon
    If you need more info. like notification as soon something happens on a specific dirs/file checkout inotify.

    [ If Its okay to run something fuse file system - then i would add a fuse wrapper - which logs who accessed which file. Drawback with fuse is the system will be become slow ]
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    FOSS India Award winning ext3fs Undelete tool Online Linux Terminal

Posting Permissions

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