[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] help with rm (yes, I'm embarrassed about this)



On Thu, 2004-11-25 at 12:51 -0500, Tejus Parikh wrote:
> Something that I find helps to avoid major mishaps is having a file
> named "-i" in all important directories (ie ones that you don't
> completely clean out that often). I have it in /home and / along with a
> few other choice places.  Creating such a file is as simple as "touch --
> -i"  

Why not just set the immutable bit on that directory.  I do this on all
of the following:
  /bin
  /boot
  /lib
  /lib/modules
  /sbin
  /usr/bin
  /usr/lib
  /usr/sbin

There are plenty of other important directories, but those are the only
ones that worry me.

-Jim P.