Yeah I now did an aptitude install
molly-guard (I guess most sysadmins know this tool, thanks mika for the hint) after I
halt'ed
modprobe.de by accident (Strato dedicated server). I was also able to reboot my file server at home 2 times last week because of....
ssh, well and of course bad shell prompts, inattention etc.
The tool is basically a replacement for halt, reboot and shutdown to prevent such accidents. To give you an impression what this looks like:
[root@bone] /home/nion/ halt
W: molly-guard: SSH session detected!
Please type in hostname of the machine to halt:
UPDATE from madducks comment:
Please note that etch's molly-guard has a bug that hits people running shutdown -h:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=426107.
I suggest to install version 0.3-1 from testing, which shall be in etch r2 soon.