Rebooting a system by mistake is really easy, especially for those with many terminal opened to many servers, it's easy to write
shutdown -r in the wrong terminal. The option
-c of shutdown allows you to cancel a reboot. Combined with a delayed reboot, it can avoid many mistakes.
shutdown -r 1 will reboot the server only after waiting 1 minute, which give you time to cancel it.
ctrl-alt-suppr will reboot the computer. This is configured in
ca:12345:ctrlaltdel:/sbin/shutdown -r nowIf you want to disable it, simply change the concerned line. Particularly for public computers and servers that are not physicaly protected.
It is also possible to restrict the usage of shutdown to a list of logged users using the
-a option. The list is defined in
/etc/shutdown.allow (on user per line) while logged users can be found in /var/run/utmp. This option can be really usefull for ctrl-alt-suppr if set in the inittab.