[arch-general] Can pam_systemd_home.so functionality be split into a separate package to prevent cluttering the logs?
David C. Rankin
drankinatty at gmail.com
Tue Jan 26 09:43:50 UTC 2021
Just as postfix is being split to separate non-default backends into
separate packages, can pam_systemd_home.so functionality be split out into a
separate package. The problems caused by this disabled part of pambase is
Even though the service is disabled, it fill the journal with entries every
time sudo is invoked. For example, every time sudo is used with journalctl,
you get 5-long lines of nonsense:
Jan 26 03:17:42 phoinix dbus-daemon: [system] Activating via systemd:
service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service'
requested by ':1.19' (uid=0 pid=5293 comm="sudo journalctl --no-pager --full -f ")
Jan 26 03:17:42 phoinix dbus-daemon: [system] Activation via systemd
failed for unit 'dbus-org.freedesktop.home1.service': Unit
dbus-org.freedesktop.home1.service not found.
Jan 26 03:17:42 phoinix sudo: pam_systemd_home(sudo:account):
systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Jan 26 03:17:42 phoinix sudo: david : TTY=pts/0 ; PWD=/home/david ;
USER=root ; COMMAND=/usr/bin/journalctl --no-pager --full -f
Jan 26 03:17:42 phoinix sudo: pam_unix(sudo:session): session opened for
user root(uid=0) by david(uid=1000)
Why not let the very few that will ever want pam_systemd_home install that
package and enable the service rather than allowing a disabled server to
clutter the logs every time sudo is used and forcing folks that don't want the
noise from a disable package to set:
just to get rid of the unnecessary messages.
https://bugs.archlinux.org/task/65819 is referenced in the discussion.
If nothing else, have NoExtract set by default and add a wiki entry about
removing NoExtract and reinstalling systemd for the few that want it?
David C. Rankin, J.D.,P.E.
More information about the arch-general