Article View: bc.unix
Article #65Re: how to find the person who last touched a file
From: Umberto Quaia
Date: Mon, 11 Nov 2002 14:41
Date: Mon, 11 Nov 2002 14:41
50 lines
2651 bytes
2651 bytes
"Narendran K Nathan" <naren@tdc.tijp.ti.com> wrote in message news:3DCF6D2F.D99B0378@tdc.tijp.ti.com... >Folks, > I am working on solaris. I did a move command on a directory owned by another person >(same user group). >original : >drwxr-sr-x 3 amit cdspdsn 4096 Nov 1 17:04 simulibs_raga_gate_amit/ >The move worked. But when I do a ls -l on the directory the directory >name is changed but the owner and the time of last update is not altered! >command : >mv simulibs_raga_gate_amit simulibs_raga_gate_amit_junk >result : >drwxr-sr-x 3 amit cdspdsn 4096 Nov 1 17:04 simulibs_raga_gate_amit_junk/ > Its quite obvious that the owner is not changed. But what is confusing is that the time stamp >is not changed. In this case how will anybody know the person who moved the directory to another >name & when? For the time it's easy: ls -lc ctime (inode change time) logs just that kind of operations. The author is not recorded, though, but this is valid for every kind of operation. The author is always unknown. You only know that (s)he is one of the people allowed to write on parent directory. For a rename operation, permissions on parent dir count, not permissions on dir/file itself. And, since the parent dir is modified, parent dir ctime and mtime are touched too. ls -la ls -lac (look at "." entry). For further reference, 4.18 File times on page 102 and its table on page 104 of W. Richard Stevens Advanced Programming in the UNIX Environment Addison Wesley 1993
Technical Details
Message-ID:
<aqofg0$bk1ng$1@ID-163428.news.dfncis.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!washdc3-snf1!news.gtei.net!cyclone1.gnilink.net!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!217.201.0.54!not-for-mailReferences:
<3DCF6D2F.D99B0378@tdc.tijp.ti.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114424,71f619258b4ecbe0 X-Google-Attributes: gid114424,public X-Google-Thread: 1020c6,71f619258b4ecbe0 X-Google-Attributes: gid1020c6,public X-Google-ArrivalTime: 2002-11-11 06:40:12 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!washdc3-snf1!news.gtei.net!cyclone1.gnilink.net!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!217.201.0.54!not-for-mail From: "Umberto Quaia" <umberto.quaia@tin.it> Newsgroups: bc.unix,comp.unix.admin Subject: Re: how to find the person who last touched a file Date: Mon, 11 Nov 2002 15:41:57 +0100 Lines: 52 Message-ID: <aqofg0$bk1ng$1@ID-163428.news.dfncis.de> References: <3DCF6D2F.D99B0378@tdc.tijp.ti.com> NNTP-Posting-Host: 217.201.0.54 X-Trace: fu-berlin.de 1037025608 12191472 217.201.0.54 (16 [163428]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300