Re:Show HN: Boulette - Protect you from yourself (even as ro...
by cgriswald on Friday January 10, 2025 @11:15AM
(#42656947)
I have no doubt this would stop some instances of (say) accidentally rebooting a production server.
But as an idiot, I’m here to tell you it isn’t idiot proof. In a moment of suboptimal attention, I could easily ask myself “What host am I on?” rather than the more appropriate question “What host am I trying to shutdown?”
In my case it may be quite a bit worse because I have hostnames in PS1 specifically to avoid running any command on the wrong host. With the hostname right in front of me I could easily accidentally habitualize just typing the hostname I see.
Over time, I imagine this would befome more likely rather than less, so although I think it probably helps, I am sympathetic to GP’s view of futility.
Re:Show HN: Boulette - Protect you from yourself (even as ro...
by BenjiWiebe on Friday January 10, 2025 @05:56PM
(#42661272)
Maybe have it prompt: what host do you NOT want to shut down?
/s
This is something that could conceivably happen to people who are properly trained. This also means it doesn't fall prey to the usual "do you really want to do this? yes - no" prompt, where you just get used to automatically hitting "yes." Even if you habitually enter the hostname, it'll be wrong if you execute the command in the wrong terminal.