Bug 87597 - XAUTHORITY env var not reset on 'su -'
Summary: XAUTHORITY env var not reset on 'su -'
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 7.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-03-29 21:30 UTC by Karl O. Pinc
Modified: 2016-11-24 14:49 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-03-29 21:34:27 UTC


Attachments (Terms of Use)

Description Karl O. Pinc 2003-03-29 21:30:35 UTC
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.