Xref: utzoo comp.lang.c:21211 comp.unix.questions:15973 comp.unix.wizards:17853 Checksum: 48841 Path: utzoo!utgpu!jinli From: jinli@gpu.utcs.utoronto.ca (Jin Tonic Li) Date: Sat, 26-Aug-89 22:04:59 EDT Message-ID: <1989Aug26.220459.18774@gpu.utcs.utoronto.ca> Organization: University of Toronto Computing Services Newsgroups: comp.lang.c,comp.unix.questions,comp.unix.wizards Subject: File Info: Who, When & What? Distribution: na 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