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 covered the important kinds > > > > So, is there a 'sure way' to delete a file? > > >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 > will be kept even if I decide to update the system that updates > OpenSSH? (Just using OpenSSH as an arbitrary example.) > > In such a case, is there a way to make sure that the old version of > OpenSSH is deleted?
Think about it. A hard link on /usr isn't something a normal user can create. Unless you've mismanaged your system. -Otto