[Bug 1206739] New: Latest update to systemd causes "theft" of X's dbus session by ssh session for user with same UID
http://bugzilla.opensuse.org/show_bug.cgi?id=1206739 Bug ID: 1206739 Summary: Latest update to systemd causes "theft" of X's dbus session by ssh session for user with same UID Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.4 Hardware: x86-64 OS: openSUSE Leap 15.4 Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: graymark@ptd.net QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- If your server is running X with the same UID as someone ssh'ing into that machine, the ssh session will steal the dbus session of the X user breaking any program that needs that dbus session. Most annoying are krunner, and kwallet but there are bound to be plenty more. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206739 http://bugzilla.opensuse.org/show_bug.cgi?id=1206739#c1 --- Comment #1 from Mark Gray <graymark@ptd.net> --- This change to the file /etc/profile.d/openssh-dbus.sh seems to fix the bug: if test -n "$SSH_CONNECTION" -a -n "$DISPLAY" then export SAVE_DISPLAY=$DISPLAY unset DISPLAY dbus-update-activation-environment --systemd --all DISPLAY=$SAVE_DISPLAY unset SAVE_DISPLAY fi At least krunner and kdewallet work now so I'm a happy camper again. You should consider dropping the --all from dbus-update-activation-environment command and only sending the environment variables systemd really needs in my opinion, but I have no idea what problem you are trying to address here. Have a happy New Year. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206739 http://bugzilla.opensuse.org/show_bug.cgi?id=1206739#c2 --- Comment #2 from Mark Gray <graymark@ptd.net> --- Drat! While this fixes the problem for the user running X on the computer that is being ssh'ed into, the ssh -X user cannot run an X program: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. So, good luck on this one (the fact that I am the only one who has noticed the bug is a bit unsettling, but it is the Holiday season). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206739 http://bugzilla.opensuse.org/show_bug.cgi?id=1206739#c3 --- Comment #3 from Mark Gray <graymark@ptd.net> --- Okay... How about this fix for /etc/profile.d/openssh-dbus.sh if test -n "$SSH_CONNECTION" -a -n "$DISPLAY" then export SAVE_DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS unset DBUS_SESSION_BUS_ADDRESS dbus-update-activation-environment --systemd --all DBUS_SESSION_BUS_ADDRESS=$SAVE_DBUS_SESSION_BUS_ADDRESS unset SAVE_DBUS_SESSION_BUS_ADDRESS fi Seems to work for both the local X11 user and the ssh -X user (why am I the only one complaining about this? Perhaps I should have waited until someone else noticed the problem. Oh well...) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206739 http://bugzilla.opensuse.org/show_bug.cgi?id=1206739#c4 --- Comment #4 from Mark Gray <graymark@ptd.net> --- Spoke too soon again - krunner has died on all the computers which are running X with the same UID as the user that uses ssh -X to log in. Commenting out the call to dbus-update-activation-environment in /etc/profile.d/openssh-dbus.sh is the only way to go. You really, really need to figure out exactly which environment variables systemd requires because your use of --all is broken. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206739 Emr Rec <erecio@polywog.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |erecio@polywog.org -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206739 http://bugzilla.opensuse.org/show_bug.cgi?id=1206739#c7 --- Comment #7 from Emr Rec <erecio@polywog.org> --- I too experience this problem, but there were no logs to look for that I could find and it happened intermittently - apparently whenever I would login remotely hours before and come back to my desktop to try to logout days later :) or plugin an MTP device via dolphin. Finally found someone on KDE Forum https://bugs.kde.org/show_bug.cgi?id=463557 that investigated further. I have just removed those two profile.d files for now, and posted a note on opensuse forums for anyone else. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com