home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / aix / 8247 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.9 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!mips!sdd.hp.com!usc!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!ki1.chemie.fu-berlin.de!richter
  2. From: richter@ki1.chemie.fu-berlin.de (Thomas Richter)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: When was it really created?
  5. Message-ID: <31I5T0S@math.fu-berlin.de>
  6. Date: 28 Jul 92 14:25:49 GMT
  7. References: <1992Jul24.185429.13174@athena.cs.uga.edu> <1992Jul27.155321.24803@cdsac.uucp>
  8. Sender: news@math.fu-berlin.de (Math Department)
  9. Organization: Free University of Berlin, Germany
  10. Lines: 33
  11.  
  12. scotte@cdsac.uucp (L. Scott Emmons) writes:
  13. >>Does anyone know how to get the real (untouched, untouchable) file
  14. >>creation time of a file in AIX? Do I have to create a database of my own
  15. >>with time first seen and checksum? Has anyone else solved this problem?
  16. >
  17. >Every UNIX file has three timestamps associated with it: time of
  18. >CREATION, time of last MODIFICATION, and time of last ACCESS (includes
  19. >open for read).
  20.  
  21. This is just plain wrong.  The time of creation is not recorded.
  22.  
  23. >You can use the "/bin/find" command to find files based on creation
  24. >date using the "-ctime" flag, for example:
  25. >
  26. >    /bin/find /archive -ctime +4 -exec rm -f {} \;
  27. >
  28. >will remove any files which were created more than 4 days ago on the
  29. >"/archive" filesystem.
  30. >
  31. >Note that users can still get around this by copying the files around.
  32. >(CREATION time really means the last time the inode was changed for
  33. >the file).
  34.  
  35. The most important sentence is the one in parenthesis.  Unfortunately
  36. there's really a lot an ill-minded user can do to change this date 
  37. without changing the filecontents.  (I think there isn't very much
  38. you can do to a file _without_ changing the i-node update time.)
  39.  
  40. -- Thomas Richter
  41. -- 
  42. phone: +49 30 838-3408                          Freie Universitaet Berlin
  43. psi:   (+262)45050230227::RICHTER               Institut f. Kristallographie
  44. smtp:  <richter@ki1.chemie.fu-berlin.de>        Takustr. 6, D-1000 Berlin 33
  45.