gnome-keyring-daemon is running, but SSH_AUTH_SOCK is not set in the session environment

Bug #402161 reported by Matt Zimmerman
16
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gdm (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

Binary package hint: gnome-keyring

After starting a new session recently (due to bug 343528), I noticed that my ssh sessions were no longer making use of the GNOME keyring. This seems to be because SSH_AUTH_SOCK is no longer set in the environment of programs running in the session.

It is printed in ~/.xsession-errors:

perseus:[~] grep SSH .xsession-errors
SSH_AUTH_SOCK=/tmp/keyring-uZ6Zb2/socket.ssh

and setting it in a shell works (ssh then talks to gnome-keyring-daemon as expected).

ProblemType: Bug
Architecture: amd64
Date: Tue Jul 21 11:40:41 2009
DistroRelease: Ubuntu 9.10
Package: gnome-keyring 2.27.4-0ubuntu1
ProcEnviron:
 LC_COLLATE=C
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
ProcVersionSignature: Ubuntu 2.6.31-3.19-generic
SourcePackage: gnome-keyring
Uname: Linux 2.6.31-3-generic x86_64

Revision history for this message
Matt Zimmerman (mdz) wrote :
tags: added: regression-potential
Revision history for this message
Sebastien Bacher (seb128) wrote :

how do you start your command line? gnome-session doesn't have the SSH environment there but gnome-panel has it for example

Revision history for this message
Matt Zimmerman (mdz) wrote : Re: [Bug 402161] Re: gnome-keyring-daemon is running, but SSH_AUTH_SOCK is not set in the session environment

On Tue, Jul 21, 2009 at 11:15:21AM -0000, Sebastien Bacher wrote:
> how do you start your command line? gnome-session doesn't have the SSH
> environment there but gnome-panel has it for example

Not here:

perseus:[/var/crash] grep SSH /proc/`pidof gnome-panel`/environ
zsh: exit 1 grep SSH /proc/`pidof gnome-panel`/environ

In fact, it's not in any process in my session that I can see:

perseus:[/var/crash] grep -s SSH /proc/*/environ
zsh: exit 2 grep -s SSH /proc/*/environ

In my tests, I usually start ssh from a shell inside gnome-terminal.

--
 - mdz

Revision history for this message
Martin Pitt (pitti) wrote :

I tracked this down to a regression in /etc/gdm/Xsession

affects: gnome-keyring (Ubuntu) → gdm (Ubuntu)
Changed in gdm (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

r60

Changed in gdm (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gdm - 2.27.4-0ubuntu3

---------------
gdm (2.27.4-0ubuntu3) karmic; urgency=low

  * 06_run_xsession.d.patch: Define $OPTIONFILE, so that the
    75dbus_dbus-launch Xsession.d script properly runs the session under
    dbus-launch. (LP: #402161)

 -- Martin Pitt <email address hidden> Tue, 21 Jul 2009 14:31:02 +0200

Changed in gdm (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Matt Zimmerman (mdz) wrote :

Well done. Thanks, Martin.

--
 - mdz

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.