Bug#1086509: `sudo -iu postgres` starts user systemd for system user

Christoph Berg myon at debian.org
Thu Oct 31 14:53:56 GMT 2024


Package: libpam-systemd
Version: 256.7-2
Severity: normal

Hi,

I'm now getting a full user systemd including dbus and pipewire when
logging into the postgres user account:

[0] 15:51 myon at turing:~ $ sudo -iu postgres
[0] 15:51 postgres at turing:~ $ ps xf
    PID TTY      STAT   TIME COMMAND
 113664 pts/8    S      0:00 -bash
 113688 pts/8    R+     0:00  \_ ps xf
 113641 ?        Ss     0:00 /usr/lib/systemd/systemd --user
 113642 ?        S      0:00  \_ (sd-pam)
 113660 ?        Ssl    0:00  \_ /usr/bin/pipewire
 113661 ?        Ssl    0:00  \_ /usr/bin/pipewire -c filter-chain.conf
 113663 ?        Ssl    0:00  \_ /usr/bin/wireplumber
 113665 ?        Ssl    0:00  \_ /usr/bin/pipewire-pulse
 113668 ?        Ss     0:00  \_ /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
[0] 15:51 postgres at turing:~ $ id
uid=118(postgres) gid=127(postgres) Gruppen=127(postgres),110(ssl-cert)
[0] 15:52 postgres at turing:~ $

This didn't use to be the case, and I don't think it is the right
behavior now.

I am not sure which package's fault this is, please forward if I got
the wrong one.


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (700, 'testing'), (600, 'unstable'), (150, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.11.4-amd64 (SMP w/20 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=de:en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libpam-systemd depends on:
ii  dbus [default-dbus-system-bus]  1.14.10-4+b1
ii  libc6                           2.40-3
ii  libcap2                         1:2.66-5+b1
ii  libpam-runtime                  1.5.3-7
ii  libpam0g                        1.5.3-7+b1
ii  systemd                         256.7-2
ii  systemd-sysv                    256.7-2

Versions of packages libpam-systemd recommends:
ii  dbus-user-session  1.14.10-4+b1

Versions of packages libpam-systemd suggests:
ii  libcryptsetup12  2:2.7.5-1
ii  libidn2-0        2.3.7-2+b1
ii  libp11-kit0      0.25.5-2+b1
ii  libtss2-rc0t64   4.1.3-1.1

-- no debconf information

Christoph



More information about the Pkg-systemd-maintainers mailing list