Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: deny deleting a file for users

From: Brian Hatch <focus-linux(at)ifokr.org>
Date: Mon Jun 02 2003 - 12:57:31 EDT

> > However this is a horrible kludge. I suggest that you take good backups

For normal files, I'd suggest this. However since it's a mail spool the poster was worried about, I imagine that the software uses the standard 'open new file, write out emails that we still want, remove original, rename new file to old file name' method. Using a hardlink to the original you will have a good copy of today's mail spool, but it'll be the exact same file months/years later because the real mail spool keeps being recreated.

Now if that's not the case (say the program writes a temp file and then writes the temp file back over the original file, such that the original file inode has never changed) then using hardlinks will be an excellent solution.

--
Brian Hatch                  How to generate a sendmail.cf:
   Systems and                1) pick up phone while using modem
   Security Engineer          2) sneeze into phone
http://www.ifokr.org/bri/     3) copy resulting line noise to
                                 /etc/sendmail.cf
Every message PGP signed

  • application/pgp-signature attachment: stored
Received on Tue Jun 3 13:11:19 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:01:20 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library