Re: preventing undeleting on ext2?

Jason Burrell (
Sat, 4 Jan 1997 01:51:11 -0600 (CST)

On Thu, 2 Jan 1997, nerull wrote:

> It used to be possable to prevent undelete by deleting a file, over
> writing it byte for byte, and deleting that file. But it seems that this
> no longer works under the newer kernels. How could one be prevented for
> undeleting files under the newer kernels? And info would be greatly
> appreaciated. Thanks.
> P.S. Please respond via E-mail(I'm not sure I will get it on the list)

If you want to keep the file from being altered at all, you can set the
immutable flag. Check out the manpage for chattr(1). Linus disabled the
"secure delete" feature because it caused problems with various things.