News for hackers. Stuff that matters.
Re:The classic Unix horror story by hernan7 on Friday August 20, 2010 @02:40PM (#1621189)
I still remember my "rm -fr /" episode after almost 20 years. It was slightly different, something related to chmod'ing some files under /etc on an AIX server:

   $ cd /etc
   $ chmod 600 some_file * # instead of some_file.*
oops... Thank God for boot diskettes.
Re:The classic Unix horror story by sketerpot on Friday August 20, 2010 @03:37PM (#1621338)
I was playing with FUSE, and had managed to mount a loopback filesystem. And then, for some ill-considered reason, I tried to delete the directory that I had mounted it inside.

I managed to Ctrl-C it before it ate any files in /home, but I still had some nasty cleanup work to get the computer back in working order again. Thank god for LiveCDs.

Re:The classic Unix horror story by cdavid on Friday August 20, 2010 @09:28PM (#1622041)
In the same spirit, I once removed a chroot tree, forgetting I bind mounted /etc into it.

It took me half a day to recover from that.

Another one, even more stupid, is to recover a "backup" of /var, done without the proper rights to it. I noticed the problem after a lot of weirds errors cropping in. This one I did not recover - after a few hours, I ended up deciding that reinstalling linux on my machine would be faster and more reliable.

Re:The classic Unix horror story by nitrogen on Saturday August 21, 2010 @05:43AM (#1622528)
I've found it's useful to look through the man pages of commonly-used tools for an option to prevent traversing filesystems.