Bug 63748 - pam_xauth doesn't copy correct cookie.
pam_xauth doesn't copy correct cookie.
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: pam (Show other bugs)
7.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tomas Mraz
Aaron Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-04-18 07:20 EDT by Need Real Name
Modified: 2007-04-18 12:42 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-10-21 09:53:51 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 Need Real Name 2002-04-18 07:20:31 EDT
Description of Problem:

pam_xauth doesn't copy the cookie that is actually used by xlib.

Version-Release number of selected component (if applicable):
7.2 latest upgrades, as of 17th April 2002

How Reproducible:
4 Servers, all had exactly the same problem.

Steps to Reproduce:

1. 
Log in via ssh (with X tunneling)
2. 
Su to root "su -"
3. 
Try and run an X application.

Actual Results:
It fails, because the cookie hasn't been copied.

Expected Results:
X application should run.

Additional Information:
/etc/hosts
----------------------------------------------------------------------------
127.0.0.1 localhost.localdomain localhost
192.168.0.1 MachineName
----------------------------------------------------------------------------

Changes to sshd_config (openssh from openssh-3.1p1-2)
----------------------------------------------------------------------------
Protocol 2
PermitRootLogin no
PasswordAuthentication no
X11UseLocalHost yes
----------------------------------------------------------------------------

Unclear how much these affect the problem.

X11UseLocalHost causes only 1 xauth cookie to be set (instead of two).

Basically:

If you have DISPLAY set to localhost:10, then the cookie that is used is
MachineName/unix:10, pam_xauth doesn't copy this.

-Antony
Comment 1 Tomas Mraz 2004-10-21 09:53:51 EDT
It works just fine with Fedora Core 2.

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