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

  1. Path: sparky!uunet!olivea!decwrl!csus.edu!csusac!cdsac!scotte
  2. From: scotte@cdsac.uucp (L. Scott Emmons)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: When was it really created?
  5. Message-ID: <1992Jul27.155321.24803@cdsac.uucp>
  6. Date: 27 Jul 92 15:53:21 GMT
  7. References: <1992Jul24.185429.13174@athena.cs.uga.edu>
  8. Organization: Cable Data (U.S. Computer Services), Sacramento, CA
  9. Lines: 34
  10.  
  11. In article <1992Jul24.185429.13174@athena.cs.uga.edu> is@groucho.dev.uga.edu (Bob Stearns) writes:
  12. >As is usual in a multiuser system, we are short of disk space. We make
  13. >available to our users a segment where files which will be reused or
  14. >moved offline may be kept for up to four days. They have discovered
  15. >touch (all of 100's of files with the same time stamp to within a
  16. >second) and are abusing the privelege.
  17. >
  18. >Does anyone know how to get the real (untouched, untouchable) file
  19. >creation time of a file in AIX? Do I have to create a database of my own
  20. >with time first seen and checksum? Has anyone else solved this problem?
  21.  
  22. Every UNIX file has three timestamps associated with it: time of
  23. CREATION, time of last MODIFICATION, and time of last ACCESS (includes
  24. open for read).
  25.  
  26. You can use the "/bin/find" command to find files based on creation
  27. date using the "-ctime" flag, for example:
  28.  
  29.     /bin/find /archive -ctime +4 -exec rm -f {} \;
  30.  
  31. will remove any files which were created more than 4 days ago on the
  32. "/archive" filesystem.
  33.  
  34. Note that users can still get around this by copying the files around.
  35. (CREATION time really means the last time the inode was changed for
  36. the file).
  37.  
  38. If you like, you can add this to "/etc/skulker", then tweak the rest
  39. of "skulker" to your liking, and uncomment the crontab entry for it...
  40.  
  41. Hope this helps...
  42. -- 
  43.                L. Scott Emmons
  44.              csusac.csus.edu!cdsac!scotte
  45.