Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 68695

Summary: gnome-terminal doesn't change title with su(1) to another user
Product: [Retired] Red Hat Public Beta Reporter: Horst H. von Brand <vonbrand>
Component: gnome-terminalAssignee: Havoc Pennington <hp>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: limbo   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-07-12 16:24:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Horst H. von Brand 2002-07-12 16:11:00 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020625

Description of problem:
When su(1)ing to root in a gnome-terminal, its title doesn't change to reflect
the new user

Version-Release number of selected component (if applicable): gnome-terminal-2.0.0-3


How reproducible:
Always

Steps to Reproduce:
1.su - root
2.
3.
	

Actual Results:  Title doesn't change
Expected Results:  New title reflecting the new user

Additional info:  Thank you all very much!

Comment 1 Nalin Dahyabhai 2002-07-12 16:23:59 UTC
In this case it's likely bash setting the title using the value of $USER.  My
best guess is that you're not using "su -", so the value in the shell's
environment remains unchanged, so $USER is your actual user name.

Try using 'su -'.  This should set $USER to "root", which should cause bash to
print the correct prompt.

Comment 2 Havoc Pennington 2002-07-12 16:25:34 UTC
gnome-terminal isn't setting the title, it's your shell. Nalin's advice should work.