On Fri, 17 May 2002, Logu wrote:

> I have logged in as user logu, now the prompt is
> sh-2.05a$
> 
> If I switch to the user again with the command 'su - logu', then the
> expected prompt comes.
> logu:~$
> how do i rectify this. I dont have /etc/bashrc or /etc/profile. I have only
> .bash_profile in my home dir.
> but the same thing works fine for the user root.
> Here is my .bash_profile file.
> -------------------
> PS1='\u:\w\$ '
> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin


you have to put PS1 in bashrc and profile.  I think it is a bug 
somewhere, and I remember it is documented.

Just make a /etc/bashrc file, and put the PS1 initialisation and export 
in there also.

-- 
Smoking Prohibited.  Absolutely no ifs, ands, or butts.


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to