Bug 206320

Summary: X apps don't work after sudo
Product: [Fedora] Fedora Reporter: Jeremy Katz <katzj>
Component: sudoAssignee: Peter Vrabec <pvrabec>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: kzak, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 5.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-22 13:00:46 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:
Bug Depends On:    
Bug Blocks: 150223    

Description Jeremy Katz 2006-09-13 17:15:31 UTC
With the changed xauth bits in FC6, trying to read ~/.Xauthority and "assuming"
that works as sudo has done in the past doesn't continue to work.

Comment 1 Tomas Mraz 2006-09-18 13:11:10 UTC
Does it mean that sudo su - and running X app from the shell doesn't work? This
probably never worked right.

Or that direct sudo Xapp doesn't work?

Comment 2 Karel Zak 2006-09-18 13:19:45 UTC
I think "sudo xapp" has never worked. See
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=164671#c4

Comment 3 Jeremy Katz 2006-09-18 17:09:22 UTC
It worked fine in FC5 (as long as you're sudo'ing on the local machine) as the
xauth cookie was readable and things worked.  Now that we do xauth based on user
(to avoid hostname changes breaking things), it's broken

Comment 4 Tomas Mraz 2006-09-20 14:43:32 UTC
Default sudoers file must be modified to contain 'XAUTHORITY' in the 'Defaults
env_keep' settings.

Problem solved.


Comment 5 Peter Vrabec 2006-09-21 08:52:46 UTC
thnx. Tomas, it's fixed in sudo-1.6.8p12-9


Comment 6 Peter Vrabec 2006-09-22 13:00:46 UTC
latest-pkg  dist-fc6 sudo
sudo-1.6.8p12-9 dist-fc6 pvrabec