So, previous post was BEFORE logging in into GUI via VNC.
Now, I have outputs from after GUI LOGIN and after GUI LOGOFF.
I've removed the maximum of useless lines (audio, GUI apps, gvfs stuff, etc), but tried to keep the most about systemd and dbus, as I'm clueless about what you wanna read ...
This post is a facking mess ! Sorry for the "encyclopedia" ...


On 05 May 2023 04:13, Max Nikulin wrote:
Have you inspected journalctl output (as root) around the "log off" moment?

--------------------------------------------------------------------
journalctl after GUI LOGIN
--------------------------------------------------------------------

May 05 14:04:45 debzit lightdm[23289]: gkr-pam: unable to locate daemon control file May 05 14:04:45 debzit lightdm[23289]: gkr-pam: stashed password to try later in open session
May 05 14:04:45 debzit systemd[1]: Stopping Session c2 of user lightdm.
May 05 14:04:45 debzit lightdm[14038]: pam_unix(lightdm-greeter:session): session closed for user lightdm
May 05 14:04:45 debzit systemd[1]: session-c2.scope: Succeeded.
May 05 14:04:45 debzit systemd[1]: Stopped Session c2 of user lightdm.
May 05 14:04:45 debzit systemd[1]: session-c2.scope: Consumed 12.947s CPU time. May 05 14:04:45 debzit lightdm[23289]: pam_unix(lightdm:session): session opened for user zithro(uid=1000) by (uid=0)
May 05 14:04:45 debzit systemd-logind[480]: Removed session c2.
May 05 14:04:45 debzit systemd-logind[480]: New session 154 of user zithro.
May 05 14:04:45 debzit systemd[1]: Started Session 154 of user zithro.
May 05 14:04:45 debzit rtkit-daemon[479]: Supervising 7 threads of 3 processes of 1 users. May 05 14:04:45 debzit pulseaudio[14058]: After module unload, module 'module-null-sink' was still loaded!
May 05 14:04:45 debzit systemd[14042]: pulseaudio.service: Succeeded.
May 05 14:04:45 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Activating service name='org.freedesktop.portal.IBus' requested by ':1.23' (uid=1000 pid=23375 comm="/usr/bin/ibus-daemon --daemonize --xim ") May 05 14:04:45 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Successfully activated service 'org.freedesktop.portal.IBus' May 05 14:04:45 debzit at-spi-bus-launcher[23376]: dbus-daemon[23376]: Activating service name='org.a11y.atspi.Registry' requested by ':1.1' (uid=1000 pid=23383 comm="/usr/libexec/ibus-ui-gtk3 ") May 05 14:04:45 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Activating via systemd: service name='org.freedesktop.portal.Desktop' unit='xdg-desktop-portal.service' requested by ':1.31' (uid=1000 pid=23384 comm="/usr/libexec/ibus-extension-gtk3 ")
May 05 14:04:46 debzit systemd[711]: Starting Portal service...
May 05 14:04:46 debzit at-spi-bus-launcher[23376]: dbus-daemon[23376]: Successfully activated service 'org.a11y.atspi.Registry' May 05 14:04:46 debzit at-spi-bus-launcher[23407]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry May 05 14:04:46 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Activating via systemd: service name='org.freedesktop.impl.portal.desktop.gtk' unit='xdg-desktop-portal-gtk.service' requested by ':1.33' (uid=1000 pid=23408 comm="/usr/libexec/xdg-desktop-portal ") May 05 14:04:46 debzit systemd[711]: Starting Portal service (GTK+/GNOME implementation)... May 05 14:04:46 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Activating service name='ca.desrt.dconf' requested by ':1.34' (uid=1000 pid=23414 comm="/usr/libexec/xdg-desktop-portal-gtk ") May 05 14:04:46 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Successfully activated service 'ca.desrt.dconf' May 05 14:04:46 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Successfully activated service 'org.freedesktop.impl.portal.desktop.gtk' May 05 14:04:46 debzit systemd[711]: Started Portal service (GTK+/GNOME implementation). May 05 14:04:46 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Activating service name='org.freedesktop.secrets' requested by ':1.33' (uid=1000 pid=23408 comm="/usr/libexec/xdg-desktop-portal ") May 05 14:04:46 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Successfully activated service 'org.freedesktop.secrets' May 05 14:04:46 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Successfully activated service 'org.freedesktop.portal.Desktop'
May 05 14:04:46 debzit systemd[711]: Started Portal service.
May 05 14:04:46 debzit x-session-manager[23299]: WARNING: Unable to find provider '' of required component 'dock' May 05 14:04:46 debzit gnome-keyring-daemon[23296]: The Secret Service was already initialized May 05 14:04:46 debzit dbus-daemon[471]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.186' (uid=1000 pid=23468 comm="/usr/bin/mate-settings-daemon ")
May 05 14:04:46 debzit systemd[1]: Starting Hostname Service...
May 05 14:04:46 debzit dbus-daemon[471]: [system] Successfully activated service 'org.freedesktop.hostname1'
May 05 14:04:46 debzit systemd[1]: Started Hostname Service.
May 05 14:04:46 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Activating service name='org.mate.panel.applet.WnckletFactory' requested by ':1.42' (uid=1000 pid=23482 comm="mate-panel ") May 05 14:04:46 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Activating via systemd: service name='org.gtk.vfs.UDisks2VolumeMonitor' unit='gvfs-udisks2-volume-monitor.service' requested by ':1.39' (uid=1000 pid=23468 comm="/usr/bin/mate-settings-daemon ") May 05 14:04:46 debzit systemd[711]: Starting Virtual filesystem service - disk device monitor... May 05 14:04:47 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Successfully activated service 'org.mate.panel.applet.WnckletFactory' May 05 14:04:47 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Successfully activated service 'org.gtk.vfs.UDisks2VolumeMonitor' May 05 14:04:47 debzit systemd[711]: Started Virtual filesystem service - disk device monitor. May 05 14:04:47 debzit polkitd(authority=local)[528]: Registered Authentication Agent for unix-session:154 (system bus name :1.190 [/usr/lib/x86_64-linux-gnu/polkit-mate/polkit-mate-authentication-agent-1], object path /org/mate/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) May 05 14:04:47 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Activating service name='org.mate.panel.applet.ClockAppletFactory' requested by ':1.42' (uid=1000 pid=23482 comm="mate-panel ") May 05 14:04:47 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Activating service name='org.mate.panel.applet.NotificationAreaAppletFactory' requested by ':1.42' (uid=1000 pid=23482 comm="mate-panel ") May 05 14:04:47 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Activating service name='org.mate.panel.applet.BriskMenuFactory' requested by ':1.42' (uid=1000 pid=23482 comm="mate-panel ") May 05 14:04:47 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Successfully activated service 'org.mate.panel.applet.NotificationAreaAppletFactory' May 05 14:04:47 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Successfully activated service 'org.mate.panel.applet.ClockAppletFactory' May 05 14:04:47 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Successfully activated service 'org.mate.panel.applet.BriskMenuFactory' May 05 14:04:47 debzit dbus-daemon[471]: [system] Activating service name='org.mate.SettingsDaemon.DateTimeMechanism' requested by ':1.192' (uid=1000 pid=23557 comm="/usr/lib/mate-panel/clock-applet ") (using servicehelper) May 05 14:04:47 debzit dbus-daemon[471]: [system] Successfully activated service 'org.mate.SettingsDaemon.DateTimeMechanism' May 05 14:04:47 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Activating via systemd: service name='org.gtk.vfs.Metadata' unit='gvfs-metadata.service' requested by ':1.47' (uid=1000 pid=23496 comm="/usr/bin/caja ") May 05 14:04:47 debzit systemd[711]: Starting Virtual filesystem metadata service... May 05 14:04:47 debzit dbus-daemon[13960]: [session uid=1000 pid=13960] Successfully activated service 'org.gtk.vfs.Metadata' May 05 14:04:47 debzit systemd[711]: Started Virtual filesystem metadata service.
May 05 14:04:55 debzit systemd[1]: Stopping User Manager for UID 112...
May 05 14:04:55 debzit systemd[14042]: Stopped target Main User Target.
May 05 14:04:55 debzit systemd[14042]: Stopping Accessibility services bus...
May 05 14:04:55 debzit systemd[14042]: Stopping D-Bus User Message Bus...
May 05 14:04:55 debzit systemd[14042]: Stopping Virtual filesystem service...
May 05 14:04:55 debzit systemd[14042]: Stopping Multimedia Service...
May 05 14:04:55 debzit pipewire-media-session[14062]: error id:0 seq:158 res:-32 (Broken pipe): connection error
May 05 14:04:55 debzit systemd[14042]: gvfs-daemon.service: Succeeded.
May 05 14:04:55 debzit systemd[14042]: Stopped Virtual filesystem service.
May 05 14:04:55 debzit systemd[14042]: dbus.service: Succeeded.
May 05 14:04:55 debzit systemd[14042]: Stopped D-Bus User Message Bus.
May 05 14:04:55 debzit systemd[14042]: at-spi-dbus-bus.service: Succeeded.
May 05 14:04:55 debzit systemd[14042]: Stopped Accessibility services bus.
May 05 14:04:55 debzit systemd[14042]: pipewire.service: Succeeded.
May 05 14:04:55 debzit systemd[14042]: Stopped Multimedia Service.
May 05 14:04:55 debzit systemd[14042]: Stopped target Basic System.
May 05 14:04:55 debzit systemd[14042]: Stopped target Paths.
May 05 14:04:55 debzit systemd[14042]: Stopped target Sockets.
May 05 14:04:55 debzit systemd[14042]: Stopped target Timers.
May 05 14:04:55 debzit systemd[14042]: dbus.socket: Succeeded.
May 05 14:04:55 debzit systemd[14042]: Closed D-Bus User Message Bus Socket.
May 05 14:04:55 debzit systemd[14042]: dirmngr.socket: Succeeded.
May 05 14:04:55 debzit systemd[14042]: pipewire.socket: Succeeded.
May 05 14:04:55 debzit systemd[14042]: Closed Multimedia System.
May 05 14:04:55 debzit systemd[14042]: pulseaudio.socket: Succeeded.
May 05 14:04:55 debzit systemd[14042]: Closed Sound System.
May 05 14:04:55 debzit systemd[14042]: Removed slice User Application Slice.
May 05 14:04:55 debzit systemd[14042]: Reached target Shutdown.
May 05 14:04:55 debzit systemd[14042]: systemd-exit.service: Succeeded.
May 05 14:04:55 debzit systemd[14042]: Finished Exit the Session.
May 05 14:04:55 debzit systemd[14042]: Reached target Exit the Session.
May 05 14:04:55 debzit systemd[1]: user@112.service: Succeeded.
May 05 14:04:55 debzit systemd[1]: Stopped User Manager for UID 112.
May 05 14:04:55 debzit systemd[1]: Stopping User Runtime Directory /run/user/112...
May 05 14:04:55 debzit systemd[22443]: run-user-112.mount: Succeeded.
May 05 14:04:55 debzit systemd[711]: run-user-112.mount: Succeeded.
May 05 14:04:55 debzit systemd[1]: run-user-112.mount: Succeeded.
May 05 14:04:55 debzit systemd[1]: user-runtime-dir@112.service: Succeeded.
May 05 14:04:55 debzit systemd[1]: Stopped User Runtime Directory /run/user/112.
May 05 14:04:55 debzit systemd[1]: Removed slice User Slice of UID 112.
May 05 14:04:55 debzit systemd[1]: user-112.slice: Consumed 13.344s CPU time. May 05 14:05:16 debzit xdg-desktop-por[23408]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list
May 05 14:05:16 debzit systemd[1]: systemd-hostnamed.service: Succeeded.

--------------------------------------------------------------------
Now, I'm logged into GUI. Did nothing in it, except logging off.
There's no lines between 14:05:16 and 14:09:14
--------------------------------------------------------------------

--------------------------------------------------------------------
journalctl after GUI LOGOFF
--------------------------------------------------------------------

May 05 14:09:14 debzit polkitd(authority=local)[528]: Unregistered Authentication Agent for unix-session:154 (system bus name :1.190, object path /org/mate/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
May 05 14:09:14 debzit systemd[711]: Stopping D-Bus User Message Bus...
May 05 14:09:14 debzit gvfsd[14302]: A connection to the bus can't be made
May 05 14:09:14 debzit systemd[711]: xdg-permission-store.service: Main process exited, code=exited, status=1/FAILURE May 05 14:09:14 debzit systemd[711]: xdg-permission-store.service: Failed with result 'exit-code'.
May 05 14:09:14 debzit systemd[22443]: run-user-1000-doc.mount: Succeeded.
May 05 14:09:14 debzit systemd[1]: run-user-1000-doc.mount: Succeeded.
May 05 14:09:14 debzit systemd[711]: run-user-1000-doc.mount: Succeeded.
[removed gvfs-* stuff]
May 05 14:09:14 debzit systemd[711]: xdg-document-portal.service: Main process exited, code=exited, status=20/n/a
May 05 14:09:14 debzit systemd[711]: dbus.service: Succeeded.
May 05 14:09:14 debzit systemd[711]: Stopped D-Bus User Message Bus.
May 05 14:09:14 debzit systemd[711]: xdg-desktop-portal.service: Succeeded.
May 05 14:09:14 debzit systemd[711]: xdg-desktop-portal-gtk.service: Succeeded. May 05 14:09:14 debzit systemd[711]: xdg-document-portal.service: Failed with result 'exit-code'.
May 05 14:09:14 debzit systemd[711]: Started D-Bus User Message Bus.
May 05 14:09:14 debzit sshd[14246]: Received disconnect from IP.IP.IP.IP port 38524:11: disconnected by user May 05 14:09:14 debzit sshd[14246]: Disconnected from user zithro IP.IP.IP.IP port 38524 May 05 14:09:14 debzit sshd[14239]: pam_unix(sshd:session): session closed for user zithro
May 05 14:09:14 debzit systemd[711]: at-spi-dbus-bus.service: Succeeded.
May 05 14:09:14 debzit lightdm[23289]: pam_unix(lightdm:session): session closed for user zithro
May 05 14:09:14 debzit systemd[1]: session-112.scope: Succeeded.
May 05 14:09:14 debzit systemd[1]: session-112.scope: Consumed 28min 48.927s CPU time. May 05 14:09:14 debzit systemd-logind[480]: Session 112 logged out. Waiting for processes to exit.
May 05 14:09:14 debzit systemd-logind[480]: Removed session 112.
May 05 14:09:14 debzit systemd-logind[480]: Session 154 logged out. Waiting for processes to exit. May 05 14:09:14 debzit sshd[14113]: Received disconnect from IP.IP.IP.IP port 38512:11: disconnected by user May 05 14:09:14 debzit sshd[14113]: Disconnected from user zithro IP.IP.IP.IP port 38512 May 05 14:09:14 debzit sshd[14107]: pam_unix(sshd:session): session closed for user zithro
May 05 14:09:14 debzit systemd[1]: session-111.scope: Succeeded.
May 05 14:09:14 debzit systemd-logind[480]: Session 111 logged out. Waiting for processes to exit. May 05 14:09:14 debzit systemd[1]: session-111.scope: Consumed 30min 58.597s CPU time.
May 05 14:09:14 debzit systemd-logind[480]: Removed session 111.
May 05 14:09:14 debzit systemd[711]: pulseaudio.service: Succeeded.
May 05 14:09:15 debzit lightdm[23703]: pam_unix(lightdm-greeter:session): session opened for user lightdm(uid=112) by (uid=0)
May 05 14:09:15 debzit systemd[1]: Created slice User Slice of UID 112.
May 05 14:09:15 debzit systemd[1]: Starting User Runtime Directory /run/user/112...
May 05 14:09:15 debzit systemd-logind[480]: New session c3 of user lightdm.
May 05 14:09:15 debzit systemd[1]: Finished User Runtime Directory /run/user/112.
May 05 14:09:15 debzit systemd[1]: Starting User Manager for UID 112...
May 05 14:09:15 debzit systemd[23707]: pam_unix(systemd-user:session): session opened for user lightdm(uid=112) by (uid=0) May 05 14:09:15 debzit systemd[23707]: Queued start job for default target Main User Target.
May 05 14:09:15 debzit systemd[23707]: Created slice User Application Slice.
May 05 14:09:15 debzit systemd[23707]: Reached target Paths.
May 05 14:09:15 debzit systemd[23707]: Reached target Timers.
May 05 14:09:15 debzit systemd[23707]: Starting D-Bus User Message Bus Socket. May 05 14:09:15 debzit systemd[23707]: Listening on D-Bus User Message Bus Socket.
May 05 14:09:15 debzit systemd[23707]: Reached target Sockets.
May 05 14:09:15 debzit systemd[23707]: Reached target Basic System.
May 05 14:09:15 debzit systemd[1]: Started User Manager for UID 112.
May 05 14:09:15 debzit systemd[1]: Started Session c3 of user lightdm.
May 05 14:09:15 debzit systemd[23707]: Starting Sound Service...
May 05 14:09:15 debzit rtkit-daemon[479]: Successfully made thread 23722 of process 23722 owned by '112' high priority at nice level -11. May 05 14:09:15 debzit rtkit-daemon[479]: Supervising 1 threads of 1 processes of 1 users.
May 05 14:09:15 debzit systemd[23707]: Started D-Bus User Message Bus.
May 05 14:09:15 debzit rtkit-daemon[479]: Successfully made thread 23724 of process 23722 owned by '112' RT at priority 20. May 05 14:09:15 debzit pipewire[23722]: Failed to receive portal pid: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get PID of name 'org.freedesktop.portal.Desktop': no such name May 05 14:09:15 debzit rtkit-daemon[479]: Successfully made thread 23723 of process 23723 owned by '112' high priority at nice level -11. May 05 14:09:15 debzit rtkit-daemon[479]: Successfully made thread 23727 of process 23727 owned by '112' high priority at nice level -11. May 05 14:09:15 debzit rtkit-daemon[479]: Successfully made thread 23728 of process 23727 owned by '112' RT at priority 20. May 05 14:09:15 debzit rtkit-daemon[479]: Supervising 5 threads of 3 processes of 1 users. May 05 14:09:15 debzit dbus-daemon[23726]: [session uid=112 pid=23726] Activating via systemd: service name='org.a11y.Bus' unit='at-spi-dbus-bus.service' requested by ':1.4' (uid=112 pid=23725 comm="/usr/sbin/lightdm-gtk-greeter ") May 05 14:09:15 debzit systemd[23707]: Starting Accessibility services bus... May 05 14:09:15 debzit dbus-daemon[23726]: [session uid=112 pid=23726] Successfully activated service 'org.a11y.Bus'
May 05 14:09:15 debzit systemd[23707]: Started Accessibility services bus.
May 05 14:09:15 debzit dbus-daemon[23726]: [session uid=112 pid=23726] Activating via systemd: service name='org.gtk.vfs.Daemon' unit='gvfs-daemon.service' requested by ':1.6' (uid=112 pid=23725 comm="/usr/sbin/lightdm-gtk-greeter ") May 05 14:09:15 debzit systemd[23707]: Starting Virtual filesystem service... May 05 14:09:15 debzit pulseaudio[23723]: Disabling timer-based scheduling because running inside a VM. May 05 14:09:15 debzit dbus-daemon[23726]: [session uid=112 pid=23726] Successfully activated service 'org.gtk.vfs.Daemon'
May 05 14:09:15 debzit systemd[23707]: Started Virtual filesystem service.
May 05 14:09:15 debzit rtkit-daemon[479]: Supervising 5 threads of 3 processes of 1 users. May 05 14:09:15 debzit rtkit-daemon[479]: Successfully made thread 23755 of process 23723 owned by '112' RT at priority 5. May 05 14:09:15 debzit rtkit-daemon[479]: Supervising 6 threads of 3 processes of 1 users. May 05 14:09:15 debzit pulseaudio[23723]: Disabling timer-based scheduling because running inside a VM. May 05 14:09:15 debzit rtkit-daemon[479]: Supervising 6 threads of 3 processes of 1 users. May 05 14:09:15 debzit rtkit-daemon[479]: Successfully made thread 23756 of process 23723 owned by '112' RT at priority 5. May 05 14:09:15 debzit rtkit-daemon[479]: Supervising 7 threads of 3 processes of 1 users.
May 05 14:09:15 debzit systemd[23707]: Reached target Main User Target.
May 05 14:09:15 debzit systemd[23707]: Startup finished in 259ms.
May 05 14:09:15 debzit at-spi-bus-launcher[23747]: dbus-daemon[23747]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=112 pid=23725 comm="/usr/sbin/lightdm-gtk-greeter ") May 05 14:09:15 debzit at-spi-bus-launcher[23747]: dbus-daemon[23747]: Successfully activated service 'org.a11y.atspi.Registry' May 05 14:09:15 debzit at-spi-bus-launcher[23768]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
May 05 14:09:16 debzit systemd[1]: session-154.scope: Succeeded.
May 05 14:09:16 debzit systemd[1]: session-154.scope: Consumed 4.528s CPU time.
May 05 14:09:16 debzit systemd-logind[480]: Removed session 154.

--------------------------------------------------------------------
Now I'm logged off GUI, all user ssh sessions (xterm+FF+TB) are gone
root xterm sessions persisted
--------------------------------------------------------------------


A wild guess is that it might be force close of systemd user session, however it should not happen. Try to compare systemd-cgls (user .slice and .scope), "loginctl list-users", "loginctl list-sessions" on each step.

--------------------------------------------------------------------
Commands after GUI LOGIN
--------------------------------------------------------------------

# systemd-cgls --no-pager
Control group /:
-.slice
+-user.slice
| +-user-0.slice
| | +-session-147.scope
| | | +-22477 sshd: root@pts/2
| | | +-22483 -bash
| | | +-23601 systemd-cgls --no-pager
| | +-session-145.scope
| | | +-22440 sshd: root@pts/1
| | | +-22462 -bash
| | | +-22634 journalctl --no-pager -b 0 --follow
| | +-user@0.service ...
| |   +-init.scope
| |     +-22443 /lib/systemd/systemd --user
| |     +-22444 (sd-pam)
| +-user-1000.slice
|   +-user@1000.service ...
|   | +-app.slice
|   | | +-xdg-permission-store.service
|   | | | +-14334 /usr/libexec/xdg-permission-store
|   | | +-xdg-document-portal.service
|   | | | +-14331 /usr/libexec/xdg-document-portal
| | | | +-14339 fusermount -o rw,nosuid,nodev,fsname=portal,auto_unmount,subtype=portal -- /run/user/1000/doc
|   | | +-xdg-desktop-portal.service
|   | | | +-23408 /usr/libexec/xdg-desktop-portal
|   | | +-xdg-desktop-portal-gtk.service
|   | | | +-23414 /usr/libexec/xdg-desktop-portal-gtk
|   | | +-at-spi-dbus-bus.service
|   | | | +-14508 /usr/libexec/at-spi-bus-launcher
| | | | +-23376 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
|   | | | +-23407 /usr/libexec/at-spi2-registryd --use-gnome-session
|   | | +-dbus.service
| | | | +-13960 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
|   | | | +-23393 /usr/libexec/ibus-portal
|   | | | +-23438 /usr/libexec/dconf-service
| | | | +-23449 /usr/bin/gnome-keyring-daemon --start --foreground --components=secrets
|   | | | +-23500 /usr/lib/mate-panel/wnck-applet
|   | | | +-23554 /usr/lib/mate-panel/notification-area-applet
|   | | | +-23556 /usr/lib/x86_64-linux-gnu/brisk-menu/brisk-menu
|   | | | +-23557 /usr/lib/mate-panel/clock-applet
|   | +-init.scope
|   |   +-711 /lib/systemd/systemd --user
|   |   +-724 (sd-pam)
|   +-session-111.scope
|   | +-14107 sshd: zithro [priv]
|   | +-14113 sshd: zithro@notty
|   | +-14114 firejail firefox -p junk -no-remote
|   | +-14117 /usr/bin/xdg-dbus-proxy --fd=4 --args=5
|   | +-14119 firejail firefox -p junk -no-remote
|   | +-14128 firefox-esr -p junk -no-remote
|   +-session-154.scope
|   | +-23289 lightdm --session-child 12 21
|   | +-23299 x-session-manager
|   | +-23358 /usr/bin/ssh-agent /usr/bin/im-launch x-session-manager
|   | +-23375 /usr/bin/ibus-daemon --daemonize --xim
|   | +-23382 /usr/libexec/ibus-dconf
|   | +-23383 /usr/libexec/ibus-ui-gtk3
|   | +-23384 /usr/libexec/ibus-extension-gtk3
|   | +-23387 /usr/libexec/ibus-x11 --kill-daemon
|   | +-23428 /usr/libexec/ibus-engine-simple
| | +-23503 /usr/lib/x86_64-linux-gnu/polkit-mate/polkit-mate-authentication-agent-1
|   +-session-112.scope
|     +-14239 sshd: zithro [priv]
|     +-14246 sshd: zithro@notty
|     +-14247 firejail thunderbird
|     +-14259 /usr/lib/thunderbird/thunderbird
+-init.scope
| +-1 /sbin/init
+-system.slice
  +-systemd-udevd.service
  | +-269 /lib/systemd/systemd-udevd
  +-polkit.service
  | +-528 /usr/libexec/polkitd --no-debug
  +-rtkit-daemon.service
  | +-479 /usr/libexec/rtkit-daemon
  +-accounts-daemon.service
  | +-459 /usr/libexec/accounts-daemon
  +-lightdm.service
  | +-  707 /usr/sbin/lightdm
| +-14004 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
  +-dbus.service
| +-471 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only

# loginctl list-sessions
SESSION  UID USER   SEAT  TTY
    111 1000 zithro
    112 1000 zithro
    145    0 root
    147    0 root
    154 1000 zithro seat0

5 sessions listed.

# loginctl list-users
 UID USER
   0 root
1000 zithro

2 users listed.

# ps -eo pid,user,args,cgroup | grep -i dbus
    471 message+ /usr/bin/dbus-daemon --syst 0::/system.slice/dbus.service
13960 zithro /usr/bin/dbus-daemon --sess 0::/user.slice/user-1000.slice/user@1000.service/app.slice/dbus.service 14117 zithro /usr/bin/xdg-dbus-proxy --f 0::/user.slice/user-1000.slice/session-111.scope 14508 zithro /usr/libexec/at-spi-bus-lau 0::/user.slice/user-1000.slice/user@1000.service/app.slice/at-spi-dbus-bus.service 23376 zithro /usr/bin/dbus-daemon --conf 0::/user.slice/user-1000.slice/user@1000.service/app.slice/at-spi-dbus-bus.service 23393 zithro /usr/libexec/ibus-portal 0::/user.slice/user-1000.slice/user@1000.service/app.slice/dbus.service 23407 zithro /usr/libexec/at-spi2-regist 0::/user.slice/user-1000.slice/user@1000.service/app.slice/at-spi-dbus-bus.service 23438 zithro /usr/libexec/dconf-service 0::/user.slice/user-1000.slice/user@1000.service/app.slice/dbus.service 23449 zithro /usr/bin/gnome-keyring-daem 0::/user.slice/user-1000.slice/user@1000.service/app.slice/dbus.service 23500 zithro /usr/lib/mate-panel/wnck-ap 0::/user.slice/user-1000.slice/user@1000.service/app.slice/dbus.service 23554 zithro /usr/lib/mate-panel/notific 0::/user.slice/user-1000.slice/user@1000.service/app.slice/dbus.service 23556 zithro /usr/lib/x86_64-linux-gnu/b 0::/user.slice/user-1000.slice/user@1000.service/app.slice/dbus.service 23557 zithro /usr/lib/mate-panel/clock-a 0::/user.slice/user-1000.slice/user@1000.service/app.slice/dbus.service 23608 root grep -i dbus 0::/user.slice/user-0.slice/session-147.scope

--------------------------------------------------------------------
Commands after GUI LOGOFF
--------------------------------------------------------------------

# systemd-cgls --no-pager
Control group /:
-.slice
+-user.slice
| +-user-112.slice
| | +-user@112.service ...
| | | +-app.slice
| | | | +-at-spi-dbus-bus.service
| | | | | +-23742 /usr/libexec/at-spi-bus-launcher
| | | | | +-23747 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
| | | | | +-23768 /usr/libexec/at-spi2-registryd --use-gnome-session
| | | | +-dbus.service
| | | | +-23726 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
| | | +-init.scope
| | |   +-23707 /lib/systemd/systemd --user
| | |   +-23708 (sd-pam)
| | +-session-c3.scope
| |   +-23703 lightdm --session-child 16 19
| |   +-23725 /usr/sbin/lightdm-gtk-greeter
| +-user-0.slice
| | +-session-147.scope
| | | +-22477 sshd: root@pts/2
| | | +-22483 -bash
| | | +-23775 systemd-cgls --no-pager
| | +-session-145.scope
| | | +-22440 sshd: root@pts/1
| | | +-22462 -bash
| | +-user@0.service ...
| |   +-init.scope
| |     +-22443 /lib/systemd/systemd --user
| |     +-22444 (sd-pam)
| +-user-1000.slice
|   +-user@1000.service ...
|     +-app.slice
|     | +-dbus.service
| | +-23637 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
|     +-init.scope
|       +-711 /lib/systemd/systemd --user
|       +-724 (sd-pam)
+-init.scope
| +-1 /sbin/init
+-system.slice
  +-systemd-udevd.service
  | +-269 /lib/systemd/systemd-udevd
  +-polkit.service
  | +-528 /usr/libexec/polkitd --no-debug
  +-rtkit-daemon.service
  | +-479 /usr/libexec/rtkit-daemon
  +-accounts-daemon.service
  | +-459 /usr/libexec/accounts-daemon
  +-lightdm.service
  | +-  707 /usr/sbin/lightdm
| +-23671 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
  | +-23766 lightdm --session-child 12 19
  +-dbus.service
| +-471 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
  +-systemd-logind.service
    +-480 /lib/systemd/systemd-logind

# loginctl list-sessions
SESSION UID USER    SEAT  TTY
    145   0 root
    147   0 root
     c3 112 lightdm seat0

3 sessions listed.

# loginctl list-users
 UID USER
   0 root
 112 lightdm
1000 zithro

3 users listed.

# ps -eo pid,user,args,cgroup | grep -i dbus
    471 message+ /usr/bin/dbus-daemon --syst 0::/system.slice/dbus.service
23637 zithro /usr/bin/dbus-daemon --sess 0::/user.slice/user-1000.slice/user@1000.service/app.slice/dbus.service 23726 lightdm /usr/bin/dbus-daemon --sess 0::/user.slice/user-112.slice/user@112.service/app.slice/dbus.service 23742 lightdm /usr/libexec/at-spi-bus-lau 0::/user.slice/user-112.slice/user@112.service/app.slice/at-spi-dbus-bus.service 23747 lightdm /usr/bin/dbus-daemon --conf 0::/user.slice/user-112.slice/user@112.service/app.slice/at-spi-dbus-bus.service 23768 lightdm /usr/libexec/at-spi2-regist 0::/user.slice/user-112.slice/user@112.service/app.slice/at-spi-dbus-bus.service 23781 root grep -i dbus 0::/user.slice/user-0.slice/session-147.scope

Perhaps it may be related to user D-Bus sessions, however I would expect that ssh GUI app has its own bus created by dbus-launch.

See above (in previous post the "ps" command output was here)


Does it happen for newly created user with no customization?


Still didn't try ...
But as root sessions persisted, I'm guessing it's a per-user problem.

Thanks already for keeping up with this sh!t !

Reply via email to