This content has been marked as final. Show 5 replies
create a .profile file in your home directory and customize it not to show root@T-Server02. The local.profile file probably sets the prompt to root@T-Server02 but that's just my guess since you did not show what is actually inside local.profile
Thanks . I'm pretty new in SUN OS, and not quite get your point . Here is the local.profile showed as below:
This is a newly happened issue, I think we haven't change any profile setting in server:
Sun Microsystems Inc. SunOS 5.9 Generic May 2002
You have mail.
root@T-Server02 # more local.profile
*# Copyright (c) 2001 by Sun Microsystems, Inc.*
*# All rights reserved.*
*# ident "@(#)local.profile 1.10 01/06/23 SMI"*
probably you got a .profile file in your home directory that is setting the wrong variables.
Check the 'PS1=' entry in the .profile file. Somebody might have used a PS1 entry in the profile to set the prompt like what you get while logging in. Check for this entry and remove it, if not required.
I think you can also check .bashrc file in your home dieactory(/export/home/prad/.bashrc)
for the 'PS1=' entry if your default shell is bash and change the prompt.