Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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.

share|improve this answer

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