I don't know if this will help, but I'll try.
I put this in my /etc/bashrc (and in my user's .bashrc):
# bash-specific settings
if [ "$UID" -eq "$ROOT_UID" ]
PS1="\[\033[31;1m\]\u \d] \\$\w\n \[\033[0m\]"
PS1="\[\033[34;1m\]\u \d] \\$\w\n \[\033[0m\]"
If you study this, or try it out, you wll see that, if the user is root, the prompt is RED (for warning, you can do great damage if you're not careful), and if the user us username, the prompt is blue (cool, can't damage anything other than my user files).
So, to correct your problem, perhaps you need something similar to watch for the ROOT_UID, which states what to do if the user is root?