Joachim Breitner

dpkg-statoverride halt

Published 2006-10-19 in sections English, Digital World.

Do you run a colocated server somwhere? Do you regularily work on it as root? Do you often have several consoles running? Do you sometimes not pay attention to the host information on the prompt? Do you shut down other computers, as your own? Then I strongly recommend you:

dpkg-statoverride --update --add root root 644 /sbin/halt

(To whom it concerns: Sorry for the downtime.)

Comments

A better approach: http://people.debian.org/~terpstra/message/20061016.145008.1f916c82.en.html
#1 Joachim Breitner (Homepage) am 2006-10-19
what does this do?

sorry, i'm feeling way to lazy to try it out and find out.
#2 thinfox am 2006-10-19
It makes halt non-executable, by removing the x bit, and makes sure that upgrades leave it that way.
#3 Joachim Breitner (Homepage) am 2006-10-19

Have something to say? You can post a comment by sending an e-Mail to me at <mail@joachim-breitner.de>, and I will include it here.