Re: So, is there a sure way to delete a file? (Was Re: UNIX way of undeleting files?)

2008-01-19 Thread Sunnz
2008/1/19, bofh [EMAIL PROTECTED]: On Jan 18, 2008 4:28 PM, Ted Unangst [EMAIL PROTECTED] wrote: On 1/18/08, Sunnz [EMAIL PROTECTED] wrote: From what I understand, if foo isn't the last hard link to the file, and `rm foo` will NOT delete the file... what does it matter if somebody

Re: So, is there a sure way to delete a file? (Was Re: UNIX way of undeleting files?)

2008-01-19 Thread Ted Unangst
On 1/18/08, bofh [EMAIL PROTECTED] wrote: I think he means sshd. And it really doesn't matter, once you make install, you'll overwrite the vulnerable copy with the new one, and all the hardlinks won't matter, because they'd be linked to the new file. except that they won't. the point of a

Re: So, is there a sure way to delete a file? (Was Re: UNIX way of undeleting files?)

2008-01-19 Thread Otto Moerbeek
On Sat, Jan 19, 2008 at 10:27:25AM -0800, Ted Unangst wrote: On 1/18/08, bofh [EMAIL PROTECTED] wrote: I think he means sshd. And it really doesn't matter, once you make install, you'll overwrite the vulnerable copy with the new one, and all the hardlinks won't matter, because they'd be

Re: So, is there a sure way to delete a file? (Was Re: UNIX way of undeleting files?)

2008-01-19 Thread Paul de Weerd
On Sat, Jan 19, 2008 at 08:57:10PM +0100, Otto Moerbeek wrote: | On Sat, Jan 19, 2008 at 10:27:25AM -0800, Ted Unangst wrote: | | On 1/18/08, bofh [EMAIL PROTECTED] wrote: | I think he means sshd. And it really doesn't matter, once you make install, | you'll overwrite the vulnerable copy

Re: So, is there a sure way to delete a file? (Was Re: UNIX way of undeleting files?)

2008-01-19 Thread Otto Moerbeek
On Sat, Jan 19, 2008 at 09:06:30PM +0100, Paul de Weerd wrote: On Sat, Jan 19, 2008 at 08:57:10PM +0100, Otto Moerbeek wrote: | On Sat, Jan 19, 2008 at 10:27:25AM -0800, Ted Unangst wrote: | | On 1/18/08, bofh [EMAIL PROTECTED] wrote: | I think he means sshd. And it really doesn't

Re: So, is there a sure way to delete a file? (Was Re: UNIX way of undeleting files?)

2008-01-19 Thread bofh
On Jan 19, 2008 1:27 PM, Ted Unangst [EMAIL PROTECTED] wrote: On 1/18/08, bofh [EMAIL PROTECTED] wrote: I think he means sshd. And it really doesn't matter, once you make install, you'll overwrite the vulnerable copy with the new one, and all the hardlinks won't matter, because they'd

Re: So, is there a sure way to delete a file? (Was Re: UNIX way of undeleting files?)

2008-01-19 Thread Stuart Henderson
On 2008/01/19 19:46, bofh wrote: On Jan 19, 2008 1:27 PM, Ted Unangst [EMAIL PROTECTED] wrote: On 1/18/08, bofh [EMAIL PROTECTED] wrote: I think he means sshd. And it really doesn't matter, once you make install, you'll overwrite the vulnerable copy with the new one, and all the

Re: So, is there a sure way to delete a file? (Was Re: UNIX way of undeleting files?)

2008-01-19 Thread NetOne - Doichin Dokov
bofh P=P0P?P8QP0: On Jan 19, 2008 1:27 PM, Ted Unangst [EMAIL PROTECTED] wrote: On 1/18/08, bofh [EMAIL PROTECTED] wrote: I think he means sshd. And it really doesn't matter, once you make install, you'll overwrite the vulnerable copy with the new one, and all the

Re: So, is there a sure way to delete a file? (Was Re: UNIX way of undeleting files?)

2008-01-19 Thread Tony Abernethy
bofh wrote: I don't get what you're talking about. If you overwrite the file (vulnerable sshd) with a new one, the file gets replaced. All the hardlinks would point to the new file. Copying to a file can be done in two distinct ways with different results for any other hard links to same

Re: So, is there a sure way to delete a file? (Was Re: UNIX way of undeleting files?)

2008-01-19 Thread bofh
On Jan 19, 2008 8:22 PM, Tony Abernethy [EMAIL PROTECTED] wrote: Copying to a file can be done in two distinct ways with different results for any other hard links to same file. cp overwrites the original inode install unlinks the original inode (after?) writing a new inode You probably get

So, is there a sure way to delete a file? (Was Re: UNIX way of undeleting files?)

2008-01-18 Thread Sunnz
2007/12/30, Hannah Schroeter [EMAIL PROTECTED]: If you type rm foo and foo was the last link to the file (the underlying inode) and there was no open file descriptor and no mapped memory referring to the inode, either (I hope I've covered the important kinds So, is there a 'sure way' to

Re: So, is there a sure way to delete a file? (Was Re: UNIX way of undeleting files?)

2008-01-18 Thread Otto Moerbeek
On Sat, Jan 19, 2008 at 03:08:36AM +1100, Sunnz wrote: 2007/12/30, Hannah Schroeter [EMAIL PROTECTED]: If you type rm foo and foo was the last link to the file (the underlying inode) and there was no open file descriptor and no mapped memory referring to the inode, either (I hope I've

Re: So, is there a sure way to delete a file? (Was Re: UNIX way of undeleting files?)

2008-01-18 Thread Ted Unangst
On 1/18/08, Sunnz [EMAIL PROTECTED] wrote: From what I understand, if foo isn't the last hard link to the file, and `rm foo` will NOT delete the file... Say if the current version of OpenSSH has a security hole, and some user create a hard link to it, it would be the that version of OpenSSH

Re: So, is there a sure way to delete a file? (Was Re: UNIX way of undeleting files?)

2008-01-18 Thread bofh
On Jan 18, 2008 4:28 PM, Ted Unangst [EMAIL PROTECTED] wrote: On 1/18/08, Sunnz [EMAIL PROTECTED] wrote: From what I understand, if foo isn't the last hard link to the file, and `rm foo` will NOT delete the file... what does it matter if somebody keeps a link to it? if you have idiot

Re: So, is there a sure way to delete a file? (Was Re: UNIX way of undeleting files?)

2008-01-18 Thread Sunnz
2008/1/19, Ted Unangst [EMAIL PROTECTED]: what does it matter if somebody keeps a link to it? if you have idiot users who insist on using broken software, you have bigger problems. what if they download the old version and compile it themselves? I guess you are right... but still, that would