File Info: Who, When & What?

Jin Tonic Li jinli at gpu.utcs.utoronto.ca
Sun Aug 27 12:04:59 AEST 1989


I am interested in knowing if it is possible to find out the following info
about a typical file.

	1. who accessed it last;
	2. when was it accessed;
	3. what was the operation(eg. read, write, mknod);

I am aware that in C, through the use of fstat(fd, buf), the last access time
st_atime can be determined.  However, I am not sure if that only records file
owner's operation.

Without running background job 24hr/day and/or being a super user, could one
determine the above info about a file?

Any shell script, C program or hacking will do.  Thanks in advance.

-- 
  		    Jin Li		      >>    Gin & Tonic mix well
   University of Toronto Computing Services  <<       No bugs, no bucks
jinli at gpu.utcs.utoronto.ca   uunet!utgpu!jinli>>   More greed, more green 



More information about the Comp.unix.questions mailing list