Bug 87597 - XAUTHORITY env var not reset on 'su -'
XAUTHORITY env var not reset on 'su -'
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
7.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-03-29 16:30 EST by kop
Modified: 2007-04-18 12:52 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-03-29 16:34:27 EST
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 kop 2003-03-29 16:30:35 EST
Description of problem:

Just upgraded my system with the latest updates and found
that 'su - joeuser' from root leaves the XAUTHORITY variable
set to /root/.Xauthority.

So commands like:

xauth extract - $DISPLAY | su -l --command="unset XAUTHORITY ; xauth merge -"
joeuser

need to explicitly unset XAUTHORITY

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
    
Actual results:


Expected results:


Additional info:

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