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