Re:Show HN: Boulette - Protect you from yourself (even as ro...
by hn92726819 on Friday January 10, 2025 @11:52AM
(#42657351)
Isn't this a little over engineered? You can accomplish the same thing with a 5-line bash script. put protect.sh somewhere in your path:
Then in your bashrc or zshrc:
[ Parent
| on HN ]
Re:Show HN: Boulette - Protect you from yourself (even as ro...
by jean_dupont on Monday January 13, 2025 @10:26AM
(#42684423)
Unfortunately we have to detect nested sessions too! When doing sudo -i, the $SSH env var can't be retrieve and we have to browse through the process tree and look for sshd.
And we need fancy printing with colors too!