I have the following entry in my .bashrc which changes the prompt to a red background with white text when I am root.
if [ "$UID" = 0 ]
export PS1="\[\e[37;1;41m\]\h:\w [\!]\$>\[\e[0m\]"
export PS1="\h:\w [\!]\$> "
the problem is I have to source .bashrc each time I switch users. Is there a way to make this happen upon switching users "on the fly"?
UPDATE: The solution was as simple as moving the definition to the /etc/bashrc
Oh Well, you live...you learn
Thanks to all who responded.