#919746 xdm or xorg seems to disregard /etc/X11/Xsession.options

Package:
xdm
Source:
xdm
Description:
X display manager
Submitter:
Per Gunnarsson
Date:
2026-10-07 17:55:03 UTC
Severity:
normal
#919746#5
Date:
2019-01-19 03:50:11 UTC
From:
To:
Dear Maintainer,

In /etc/X11/Xsession.options, I tried to set

no-use-ssh-agent

so that I could start ssh-agent through gnome-keyring-daemon
instead with xfce4-session (there is an tickable option in xfce4 startup
options to do this).

but now ssh-agent starts anyway.

(If one does this as described in it's possible for the xfce4 terminal emulator
to automatically login to remote machines when one logs into xdm, if one saves
the xfce4 session. It's convenient and I think it's OK as long as Mossad
doesn't get into the apartment.)

https://wiki.gnome.org/Projects/GnomeKeyring/Pam

#919746#12
Date:
2026-10-07 17:53:26 UTC
From:
To:
notfound 919746 1:1.1.11-3
thanks

Hi,

On Sat, 19 Jan 2019 04:50:11 +0100 Per Gunnarsson <p.gunnarsson@yahoo.com> wrote:
 > Package: xdm
 > Version: 1:1.1.11-3
 > Severity: normal
 >
 > Dear Maintainer,
 >
 > In /etc/X11/Xsession.options, I tried to set
 >
 > no-use-ssh-agent
 >
 > so that I could start ssh-agent through gnome-keyring-daemon
 > instead with xfce4-session (there is an tickable option in xfce4 startup
 > options to do this).
 >
 > but now ssh-agent starts anyway.
 >
 > (If one does this as described in it's possible for the xfce4 terminal emulator
 > to automatically login to remote machines when one logs into xdm, if one saves
 > the xfce4 session. It's convenient and I think it's OK as long as Mossad
 > doesn't get into the apartment.)
 >
 > https://wiki.gnome.org/Projects/GnomeKeyring/Pam
 >
 >
 >
 > -- System Information:
 > Debian Release: buster/sid

Package xdm itself does not read /etc/X11/Xsession.options. Instead, its
Xsession script only runs Debian's common /etc/X11/Xsession, and the ssh-agent
hooks there (/etc/X11/Xsession.d/90x11-common_ssh-agent) does honor
"no-use-ssh-agent". THere are two other places that can launch ssh-agent in your
setup:

   * xfce4-session starts its own ssh-agent unless you disable it explicitly. For example,
     xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false

   * with the x11-common package version in buster, adding a "no-use-ssh-agent" line
     does not override a "use-ssh-agent" line that was still present. The option had
     to be replaced. Current x11-common in Testing/Sid is different and now considers
     the "no-" lines with higher priority.

As neither problem is from xdm, I am closing this bug. If you still see ssh-agent started
by /etc/X11/Xsession with current x11-common, please file it against x11-common.

Thanks,
Boyuan Yang