On 2017-04-14 22:11, Dave Howorth wrote:
On Fri, 14 Apr 2017 19:45:28 +0200 (CEST) "Carlos E. R." <robin.listas@telefonica.net> wrote:
Do we have a method so that halt, reboot, suspend, hibernate operations are disabled? Requiring a secondary confirmation or removal of the inhibit?
Set one or more aliases in the .bashrc of the ssh session?
Ah, yes. That could work, at least for halt or reboot. I will do it, thanks. But not for "systemctl hibernate"
Scenario: ssh to server. I can accidentally type the wrong command to the wrong session and thus disable the server. If I'm local restoring is easy, but not if remote.
Happened already once (I was local).
Learning from experience is good, I suppose!
Yes, but it will surely happen again. And once it will happen when I'm kilometres away. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)