changing file times
Dan Bernstein
brnstnd at kramden.acf.nyu.edu
Wed Oct 31 16:31:44 AEST 1990
In article <28928 at boulder.Colorado.EDU> englund at tramp.Colorado.EDU (ENGLUND TODD CHARLES) writes:
> Does anyone know how to change the last date a file was altered? Even
> if one doesn't happen to be a super-user?
Use the utimes() system call. You can never change the ctime to anything
but the current time, except by changing the system time or writing the
raw disk. Note that any uses of the atime/mtime for security should also
check the ctime.
---Dan
More information about the Comp.unix.questions
mailing list