Possible Duplicate:
File audit in Linux: how to watch directory tree for deletions?
Find out which process is changing a file

In linux is there a command where it can say who are all the users who have accessed one partic

stat command just gives me the basic

Is there a utility where i can list of all the users or how to know the users who have done those changes

or how can a file be monitored and log these information

marked as duplicate by Tim Brigham, Lucas Kauffman, Scott Pack, Iain Aug 13 '12 at 18:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • in short: you want to know who's access a file ? -- try process accounting, command logging, version control, lsof, or similar. Amongst that lot there's prolly something that'll help you. It sounds like you want revision control though - see "svn". If you just want to know when the file is changed, use iwatch or similar. – Sirex Feb 16 '12 at 12:13
  • No not exactly ,At some point of time just want to know who are all the users who have accessed the scripts and executed it..Kind of logging system – Rajeev Feb 16 '12 at 12:16

You can try audit. This link provide information related to Centos/redhat, but it should be similar for other distributions also.

Not the answer you're looking for? Browse other questions tagged or ask your own question.