home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / aix / 8238 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.9 KB  |  55 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!tabatha!maf
  3. From: maf@tabatha.MAE.CWRU.EDU (Mark Fullmer)
  4. Subject: Re: When was it really created?
  5. Message-ID: <1992Jul28.035009.27875@usenet.ins.cwru.edu>
  6. Sender: news@usenet.ins.cwru.edu
  7. Nntp-Posting-Host: tabatha.mae.cwru.edu
  8. Organization: Case Western Reserve University
  9. References: <1992Jul24.185429.13174@athena.cs.uga.edu> <bill.712285256@chaos.cs.umn.edu>
  10. Date: Tue, 28 Jul 92 03:50:09 GMT
  11. Lines:       43
  12.  
  13. In article <bill.712285256@chaos.cs.umn.edu> bill@chaos.cs.umn.edu (Hari Seldon) writes:
  14. >In <1992Jul24.185429.13174@athena.cs.uga.edu> is@groucho.dev.uga.edu (Bob Stearns) writes:
  15. >
  16. >>As is usual in a multiuser system, we are short of disk space. We make
  17. >>available to our users a segment where files which will be reused or
  18. >>moved offline may be kept for up to four days. They have discovered
  19. >>touch (all of 100's of files with the same time stamp to within a
  20. >>second) and are abusing the privelege.
  21. >
  22. >>Does anyone know how to get the real (untouched, untouchable) file
  23. >>creation time of a file in AIX? Do I have to create a database of my own
  24. >>with time first seen and checksum? Has anyone else solved this problem?
  25. >chmod go-rwx /bin/touch
  26. >that outa do it.
  27. >
  28. >bill pociengel
  29. >--
  30. >bill@chaos.cs.umn.edu
  31.  
  32. No, chmod go-rwx doesn't buy you anything.  Removing the permissions on
  33. an executable a user could write himself, ftp from somewhere, compile
  34. from public sources, duplicate with a script, etc, etc, is just annoying.
  35.  
  36. To answer the original posters question, unix doesn't keep a file creation
  37. date.  see stat.h:
  38.  
  39. struct  stat
  40. {
  41. [...deleted]
  42.     time_t    st_atime;        /* Time of last access */
  43.     int    st_spare1;
  44.     time_t    st_mtime;        /* Time of last data modification */
  45.     int    st_spare2;
  46.     time_t    st_ctime;        /* Time of last file status change */
  47.     int    st_spare3;
  48.                     /* Time measured in seconds since */
  49.                     /*   00:00:00 GMT, Jan. 1, 1970 */
  50.  
  51. [...deleted]
  52.  
  53.  
  54. mark
  55.