Bug#906773: systemd-login spams logs.

2018-08-20 Thread Peter.Chubb
> "Michael" == Michael Biebl  writes:



Michael> That seems odd: the systemd --user instance is started via
Michael> PAM for login sessions.  The PAM config for cron should
Michael> contain:


Cron is running on a separate server that uses ssh to poll.  So these
are coming from ssh.

Peter C


Bug#906773: systemd-login spams logs.

2018-08-20 Thread Michael Biebl
Control: tags -1 + moreinfo

On Mon, 20 Aug 2018 22:35:50 +  wrote:
> 
> Package: systemd
> Version: 239-7
> Severity: minor
> 
> Dear Maintainer,
> On a busy server, systemd-logind spams the logs with lots and lots of
> messages about user sessions.
> 
> These are not interactive sessions --- they're started by cron 
> from watchdog and backup servers.  But I see:
> 

That seems odd: the systemd --user instance is started via PAM for login
sessions.
The PAM config for cron should contain:

@include common-session-noninteractive

which does *not* include pam_systemd.so

Please check, which PAM config is used and does pull in pam_systemd.so
in your case.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#906773: systemd-login spams logs.

2018-08-20 Thread Peter.Chubb


Package: systemd
Version: 239-7
Severity: minor

Dear Maintainer,
On a busy server, systemd-logind spams the logs with lots and lots of
messages about user sessions.

These are not interactive sessions --- they're started by cron 
from watchdog and backup servers.  But I see:

Aug 21 08:10:01 cellar systemd[1]: Started User Manager for UID 0.
Aug 21 08:10:01 cellar systemd[1]: user-runtime-dir@0.service: Unit not needed a
nymore. Stopping.
Aug 21 08:10:01 cellar systemd[1]: Stopping User Manager for UID 0...
Aug 21 08:10:01 cellar systemd[56661]: Stopped target Default.
Aug 21 08:10:01 cellar systemd[56661]: Stopped target Basic System.
Aug 21 08:10:01 cellar systemd[56661]: Stopped target Timers.
Aug 21 08:10:01 cellar systemd[56661]: Stopped target Sockets.
Aug 21 08:10:01 cellar systemd[56661]: Closed GnuPG cryptographic agent and pass
phrase cache.
Aug 21 08:10:01 cellar systemd[56661]: Closed GnuPG cryptographic agent and pass
phrase cache (access for web browsers).
Aug 21 08:10:01 cellar systemd[56661]: Closed GnuPG cryptographic agent and pass
phrase cache (restricted).
Aug 21 08:10:01 cellar systemd[56661]: Closed GnuPG cryptographic agent (ssh-age
nt emulation).
Aug 21 08:10:01 cellar systemd[56661]: Stopped target Paths.
Aug 21 08:10:01 cellar systemd[56661]: Closed GnuPG network certificate manageme
nt daemon.
Aug 21 08:10:01 cellar systemd[56661]: Closed D-Bus User Message Bus Socket.
Aug 21 08:10:01 cellar systemd[56661]: Reached target Shutdown.
Aug 21 08:10:01 cellar systemd[56661]: Starting Exit the Session...
Aug 21 08:10:01 cellar systemd[1]: user-runtime-dir@0.service: Unit not needed 
anymore. Stopping.
Aug 21 08:10:01 cellar systemd[1]: Stopped User Manager for UID 0.
Aug 21 08:10:01 cellar systemd[1]: user-runtime-dir@0.service: Unit not needed 
anymore. Stopping.
Aug 21 08:10:01 cellar systemd[1]: Stopping /run/user/0 mount wrapper...
Aug 21 08:10:01 cellar systemd[1]: Removed slice User Slice of UID 0.
Aug 21 08:10:01 cellar systemd[1]: Stopped /run/user/0 mount wrapper.

or similar every few seconds in the logs.  The default behaviour should be 
to be silent unless there's something wrong.  Plus, it seems to be doing a lot
of work that's unnecessary for a non-interactive ssh-initiated session.

Peter C


-- Package-specific info:

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.16.0-2-amd64 (SMP w/56 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd depends on:
ii  adduser  3.117
ii  libacl1  2.2.52-3+b1
ii  libapparmor1 2.13-8
ii  libaudit11:2.8.3-1+b1
ii  libblkid12.32.1-0.1
ii  libc62.27-5
ii  libcap2  1:2.25-1.2
ii  libcryptsetup12  2:2.0.4-2
ii  libgcrypt20  1.8.3-1
ii  libgnutls30  3.5.19-1
ii  libgpg-error01.32-1
ii  libidn11 1.33-2.2
ii  libip4tc01.6.2-1.1
ii  libkmod2 25-1
ii  liblz4-1 1.8.2-1
ii  liblzma5 5.2.2-1.3
ii  libmount12.32.1-0.1
ii  libpam0g 1.1.8-3.8
ii  libseccomp2  2.3.3-3
ii  libselinux1  2.8-1+b1
ii  libsystemd0  239-7
ii  mount2.32.1-0.1
ii  procps   2:3.3.15-2
ii  util-linux   2.32.1-0.1

Versions of packages systemd recommends:
ii  dbus1.12.10-1
ii  libpam-systemd  239-7

Versions of packages systemd suggests:
ii  policykit-10.105-21
pn  systemd-container  

Versions of packages systemd is related to:
pn  dracut   
ii  initramfs-tools  0.132
ii  udev 239-7

-- no debconf information

-- 
Dr Peter Chubb Tel: +61 2 9490 5852  http://ts.data61.csiro.au/
Trustworthy Systems Group Data61, CSIRO (formerly NICTA)