Bug 83598

Summary: pam_xauth does not copy gnuserv cookie
Product: [Fedora] Fedora Reporter: Matt Tucker <tuck>
Component: pamAssignee: Tomas Mraz <tmraz>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: k.georgiou
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-06 11:13:55 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 Matt Tucker 2003-02-05 23:55:48 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021206

Description of problem:
When attempting to use Emacs's gnuserv/gnuclient in conjunction with su,
pam_xauth does not copy the :999 xauth cookie, rendering gnuclient unuseable by
root (or whatever other account is su'd to).

How reproducible:
Always

Steps to Reproduce:
1. Start Emacs/XEmacs
2. Do M-x gnuserv-start
3. From command-line, do:
   $ gnuclient -batch -eval '(princ "Hello world")'
4. Should get an output in the *Messages* buffer on XEmacs (or equiv
   on Emacs).
5. Do:
   $ su -c "gnuclient -batch -eval '(princ \"Hello world\")'"

Actual Results:
   gnuclient: Connection refused
   gnuclient: unable to connect to remote

Expected Results:
   Should get and output in the *Messages* buffer (or Emacs equiv), as in 4.

Comment 1 Tomas Mraz 2004-11-16 14:50:48 UTC
Is this bug still in the latest Fedora Core?

Comment 2 Matt Tucker 2004-11-16 23:44:33 UTC
Yes, this bug is still there. xauth_pam only copies the cookie
associated with DISPLAY, but doesn't copy the 999 cookie, which is
required for proper gnuserv/gnuclient operation.

Comment 3 Tomas Mraz 2010-12-06 11:13:55 UTC
I do not plan to work on this problem any time soon. Please reopen if you have patch.