Bug 68695 - gnome-terminal doesn't change title with su(1) to another user
gnome-terminal doesn't change title with su(1) to another user
Status: CLOSED NOTABUG
Product: Red Hat Public Beta
Classification: Retired
Component: gnome-terminal (Show other bugs)
limbo
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Havoc Pennington
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-07-12 12:11 EDT by Horst H. von Brand
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-07-12 12:24:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Horst H. von Brand 2002-07-12 12:11:00 EDT
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 12:23:59 EDT
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 12:25:34 EDT
gnome-terminal isn't setting the title, it's your shell. Nalin's advice should work.

Note You need to log in before you can comment on or make changes to this bug.