Thread View: bc.unix
4 messages
4 total messages
Started by Narendran K Nathan
Mon, 11 Nov 2002 08:41
how to find the person who last touched a file
Author: Narendran K Nathan
Date: Mon, 11 Nov 2002 08:41
Date: Mon, 11 Nov 2002 08:41
63 lines
4033 bytes
4033 bytes
--------------F85C7C0D201AE649BD18B41D Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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? Thanks & Regards, Naren. --------------F85C7C0D201AE649BD18B41D Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> Folks, <br> I am working on solaris. I did a move command on a directory owned by another person <br>(same user group). <p><font color="#000099">original :</font> <br><font color="#000099">drwxr-sr-x 3 amit cdspdsn 4096 Nov 1 17:04 simulibs_raga_gate_amit/</font> <p>The move worked. But when I do a ls -l on the directory the directory <br>name is changed but the owner and the time of last update is not altered! <p><font color="#000099">command :</font> <br><font color="#000099">mv simulibs_raga_gate_amit simulibs_raga_gate_amit_junk</font> <br><font color="#000099">result :</font> <br><font color="#000099">drwxr-sr-x 3 amit cdspdsn 4096 </font><font color="#990000">Nov 1 17:04</font><font color="#000099"> simulibs_raga_gate_amit_junk/</font> <p> Its quite obvious that the owner is not changed. But what is confusing is that the time stamp <br>is not changed. <font color="#990000">In this case how will anybody know the person who moved the directory to another</font> <br><font color="#990000">name & when?</font><font color="#990000"></font> <p>Thanks & Regards, <br>Naren.</html> --------------F85C7C0D201AE649BD18B41D--
Re: how to find the person who last touched a file
Author: 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
Re: how to find the person who last touched a file
Author: those who know me have no need o...
Date: Mon, 11 Nov 2002 15:33
Date: Mon, 11 Nov 2002 15:33
24 lines
2355 bytes
2355 bytes
[fu-t set -- ugh, could you think of more groups] in comp.unix.admin i read: > I am working on solaris. I did a move command on a directory owned by >another person (same user group). >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! the i-node change time isn't displayed by ls -l, use ls -lc. the owner won't change at all, all you did was move the file, if you want to change the ownership you have to do that as a separate step, which may require extended permissions. >In this case how will anybody know the person who moved the directory to >another name & when? enable auditing. though `anyone' cannot obtain reports, at least someone can and you can pose that sort of question to that person. -- bringing you boring signatures for 17 years
Re: how to find the person who last touched a file
Author: chud
Date: Thu, 14 Aug 2003 18:55
Date: Thu, 14 Aug 2003 18:55
33 lines
2310 bytes
2310 bytes
Sounds to me like you moved them into a directory that has setuid on it.... In comp.unix.admin Narendran K Nathan <naren@tdc.tijp.ti.com> wrote: > 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? > Thanks & Regards, > Naren.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads