On Mon, 08 Dec 2003 00:57:25 -0500 "H. S." <[EMAIL PROTECTED]> wrote:
> I have tried to find on the web how to change my root prompt. I tried > setting the PS1 in /etc/profile but it seems that is not read when I > do "su -" to change to root. No, it is read: timaeus:~$ su timaeus:/home/tppytel# echo "echo This is a test" >> /etc/profile timaeus:/home/tppytel# exit [EMAIL PROTECTED]:~$ su - This is a test timaeus:~# > But if I do "source /etc/profile" as > root, I get my changes prompt, but then I loose the root environment. > (BTW, setting PS1 in /etc/profile works in Fedora) > > So in Debian, bash doesn't read /etc/profile when "su -" is executed? > Where do I need to set PS1 so that I get that new prompt after "su -"? I suspect that root's prompt is being set somewhere and being read in after /etc/profile, overwriting PS1. Perhaps in /root/.bashrc or /root/.bash_profile? -- Todd Pytel ---------------------------------------- Signature attached PGP Key ID 77B1C00C
pgp00000.pgp
Description: PGP signature