Prevent Accidental Shutdown/Reboot in Ubuntu
Jan 15, 2010, 22:32 (9 Talkback[s])
How to Help Your Business Become an AI Early Adopter
[ Thanks to Hungry
Hacker for this link. ]
"If you are a command line geek then you would have
often entered the wrong commands many times, some of which could
lead to accidental shutdown/restart. Molly-Guard is a command line
script which prevents you from accidentally shutting down or
rebooting your Ubuntu system.
"It basically overrides the default system binaries of the
shutdown, reboot, or halt processes. So once you try to reboot or
shutdown your system form the command line it will prompt you to
enter the hostname of your computer. Thus in this way you are
prevented from accidental shutdown or reboot."