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 ]
then
export PS1="\[\e[37;1;41m\]\h:\w [\!]\$>\[\e[0m\]"
else
export PS1="\h:\w [\!]\$> "
fi
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.