All of lore.kernel.org
 help / color / mirror / Atom feed
* securely deleting files
@ 2003-05-06  5:37 Jason Holt
  2003-05-06 10:37 ` Hans Reiser
  2003-05-12  7:50 ` Oleg Drokin
  0 siblings, 2 replies; 5+ messages in thread
From: Jason Holt @ 2003-05-06  5:37 UTC (permalink / raw)
  To: reiserfs-list


shred is a tool which is supposed to overwrite files so that they're
unrecoverable, even with fairly involved recovery techniques.  

But it isn't guaranteed to work - sensitive blocks may get moved around on the
physical disk, stored in journals, etc.

So here's how I get around it:

$ cat >sensitive
there's something sensitive in this file...

$ rm sensitive
$ cat /dev/zero    >foo ; sync ; rm foo  # Fill up the disk, then delete.
$ cat /dev/urandom >foo ; sync ; rm foo  # For the *truly* paranoid

Now, a good friend of mine pointed out that part of the space on a filesystem
is kept aside just for root, so you may want to fill the disk up as root.  
(Is this actually a concern?  Can blocks which used to hold user data end up
being reserved?)  

Also, if your sensitive file was in memory recently it might have been swapped
out, in which case it may still be in the swap partition.  I have a program
which fills up all available *memory* as well, and I could post the source
here if everyone's interested.

						-J


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-05-12 10:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-06  5:37 securely deleting files Jason Holt
2003-05-06 10:37 ` Hans Reiser
2003-05-12  7:50 ` Oleg Drokin
2003-05-12 10:39   ` Hans Reiser
2003-05-12 10:44     ` Oleg Drokin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.