Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!rpi!sci.ccny.cuny.edu!phri!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.questions Subject: Re: changing file times Message-ID: <28448:Oct3105:31:4490@kramden.acf.nyu.edu> Date: 31 Oct 90 05:31:44 GMT References: <28928@boulder.Colorado.EDU> Organization: IR Lines: 10 In article <28928@boulder.Colorado.EDU> englund@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