Is there a way to change the prompt string for root, so that I see that prompt string, after logging in as root with “su”?
Thanks a lot in advance
The problem is that when you run su you are not logging in, you are super usering yourself That’s different.
I don’t know of any way to get the prompt string.
Okay you’re right I’m not logging in with su.
I can change the normal prompt string by editing the PS1-variable.
But the prompt string for a super-usered normal user got to be defined somewhere.
so I guess there is a way to change it.
It’s define in /etc/profile I beleive, but the thing is that the su program doesn’t process that file, it’s login that does.