> I'll second David's recommendation to *not* do this.  It's a
> really, really, bad idea.  You want to make sure the fact
> that you are signed on as root is *more* obvious, not less.

In fact, look at the use of the PS1 through PS4 environment variables in the
bash man page. If you set PS1 and PS2 to appropriate ANSI escape sequences,
you can highlight root sessions in different ways based on terminal type
(example: if I'm working in a xterm, I use it to put the current directory
in the title of a window, and root windows have red letters on black
backgrounds with the word ROOT in blinking text in the prompt, and VTxxx
sessions use the 25th line with similar highlighting). You can also call a
program for each prompt by setting PROMPT_COMMAND -- warning: this has
performance impacts, so the program should be short!

-- db

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to