Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Who accesses my files?

Status
Not open for further replies.

Barn

Technical User
Feb 22, 2002
37
0
0
FR
Hi!

How can I know who accessed (or modified) a files?

Thanx in advance.


Barn.
IBM Certified -- Am I?
 
hi ,

you can use fuser filename to see if file is in use it will
give you process id where you can check using ps -ef | grep process id to see who is using it

You can use istat command ( man istat) istat filename
to show you when it was last modified

if you have the HISTFILE variable set in your .profile
you can check users history to see if any one vi'ed , / changed your file.

HTH
 

Indeed, I knew for fuser and istat.

The modification is appening during the night.
If there is not a built-in command I'll try your third suggestion. A deamon process with fuser can be a solution to.

Thank u for your reply.

Barn.
IBM Certified -- Am I?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top