News for hackers. Stuff that matters.
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.
Re:The sudo fraud by _lce0 on Wednesday June 08, 2016 @05:02PM (#11865646)
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
Re:The sudo fraud by dllthomas on Thursday June 09, 2016 @02:21PM (#11871275)
I check in PROMPT_COMMAND whether the current terminal can sudo without a password and add a colored note to my prompt if so.