[comp.lang.c] File Info: Who, When & What?

jinli@gpu.utcs.utoronto.ca (Jin Tonic Li) (08/27/89)

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@gpu.utcs.utoronto.ca   uunet!utgpu!jinli>>   More greed, more green