Getting molly-guard to work with sudo
Posted
by
0xC0000022L
on Super User
See other posts from Super User
or by 0xC0000022L
Published on 2013-10-29T15:17:09Z
Indexed on
2013/10/29
16:00 UTC
Read the original article
Hit count: 268
The program molly-guard
is a brilliant little tool which will prompt you for a piece of information before you reboot or shut down a system. Usually it asks for the hostname. So when you work a lot via SSH, you won't end up taking down the wrong server, just because you were in the wrong tab or window.
Now, this works all fine when you say reboot
on the command line while you are already root
. However, it won't work if you do sudo reboot
(i.e. it won't even ask). How can I get it to work with sudo
as well?
System: Raspbian (latest, including updates), package molly-guard
version 0.4.5-1
.
© Super User or respective owner