Re:The sudo fraud
by mh-cx on Wednesday June 08, 2016 @04:03PM
(#11865183)
On my severs I often use “sudo -s“ in a separate tmux window. I've changed my PS1 to give me a red prompt for root. Over the years I never had a situation where I accidentally did something stupid as root.
[ Parent
| on HN ]
It is so good to have visual clues. I do something similar, using..
red = root
yellow = others (or ssh)
green = me
Plus when I'm SSH'ing to a remote box, it usually defaults to white prompt