:: Re: [DNG] New behaviour under Devua…
Top Page
Delete this message
Reply to this message
Author: Renaud (Ron) OLGIATI
Date:  
To: dng
Subject: Re: [DNG] New behaviour under Devuan.
On Sat, 23 Sep 2017 06:28:30 -0700
Rick Moen <rick@???> wrote:

> > If the '#' and "root@hostname" escape the attention of a person
> > entrusted with root privileges, then why not make the root prompt bright red:
> >
> > root@ratatosk:/home/erik# export PS1="\[\033[1;31m\]\u@\h:\W\$ \[\033[0;0m\]"
>
> It's a very good idea -- or, as Arnt says, set the background colour
> (which you can do with X11 resources if launching root shell directly
> from the window manager).


Do both; that way you get a warning when you log in as root in an X session, and also when you log in in a tty.

Cheers,

Ron.
-- 
                       When we remember we are all mad,
              the mysteries disappear and life stands explained.
                                                   -- Mark Twain


                   -- http://www.olgiati-in-paraguay.org --