Re: deny deleting a file for users
From: Brian Hatch (focus-linux_at_ifokr.org)
Date: 06/02/03
- Previous message: Petty, Robert: "RE: Linux firewall/IDS/NAT suggestions"
- Maybe in reply to: Seth Arnold: "Re: deny deleting a file for users"
- Next in thread: Stephen Samuel: "Re: deny deleting a file for users"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 2 Jun 2003 09:57:31 -0700 To: J Norfleet <jnorfleet@picusnet.com>
> > However this is a horrible kludge. I suggest that you take good backups
> > and make them available to the users who delete their files by mistake.
> > Or, let them feel the pain a few times until they stop doing it.
>
> Create hard links. (Backup copy that changes when the original files do.)
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
- Previous message: Petty, Robert: "RE: Linux firewall/IDS/NAT suggestions"
- Maybe in reply to: Seth Arnold: "Re: deny deleting a file for users"
- Next in thread: Stephen Samuel: "Re: deny deleting a file for users"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|