News for hackers. Stuff that matters.
Re:Show HN: Boulette - Protect you from yourself (even as ro... by ale42 on Friday January 10, 2025 @10:01AM (#42656156)
I'm using molly-guard (htps://salsa.debian.org/debian/molly-guard, mentioned on Boulette's github btw as inspiration) since years for this after I've remotely shut down our file server thinking I was on another tmux pane. It saved me once or twice since. Btw, molly-guard doesn't require setting up aliases.
Re:Show HN: Boulette - Protect you from yourself (even as ro... by remram on Friday January 10, 2025 @10:12AM (#42656277)
For anyone wondering how this works, molly-guard uses package diversions to actually rename the shutdown/reboot/... binaries and replace them with molly-guard: https://git.launchpad.net/ubuntu/+source/molly-guard/tree/de...

This is a cool ability of dpkg that is not well known. You can use it without making a package as well.

Re:Show HN: Boulette - Protect you from yourself (even as ro... by ale42 on Saturday January 11, 2025 @04:05PM (#42668917)
Didn't know what specific technique it used to do that, thanks for mentioning this!

Btw for those who wonder where the name comes from: https://news.ycombinator.com/item?id=26633320

Re:Show HN: Boulette - Protect you from yourself (even as ro... by jean_dupont on Friday January 10, 2025 @10:30AM (#42656493)
Yes! Molly guard is genius! Unfortunately I couldn't get it to work on nixos which is not FHS-complient!