Re: RFC: preventing accidental deletion of system directories
On Sat, Mar 22, 2008 at 10:16 AM, Francois Marier <francois@debian.org> wrote:
> Having recently deleted my /usr/lib by mistake (and gone through the pain of
> reinstalling all of my packages), I wrote a little Perl script which I have
> now aliased to "rm" in my .bashrc.
At one point I set my system up so that several key directories had
the immutable bit set do you couldn't change them. Ofcourse, I still
wanted upgrades to work so I used APT hooks to remove the bits prior
to installing and add them back afterwards.
It was a proofof concept, but it worked.
Have a nice day,
--
Martijn van Oosterhout <kleptog@gmail.com> http://svana.org/kleptog/
Reply to: