Bug#804322: should @include common-session-noninteractive instead

Hilmar Preuße hille42 at web.de
Mon Sep 19 14:15:39 UTC 2016


Am 19.09.2016 um 15:45 schrieb Marco d'Itri:
> On Sep 19, Hilmar Preuße <hille42 at web.de> wrote:

Hi,

>> hille at sid:~ $ apt-file search common-session
>
> I do not know why your system common-session and
> common-session-noninteractive appear to be identical, but this is not
> correct. Just check: /usr/share/pam-configs/systemd .
>
This is an old system, which has been set up years ago (about 8) and is 
running unstable since then. It wasn't migrated to systemd yet.

sid:~# apt-get install libpam-systemd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
   cgmanager libcgmanager0 libcryptsetup4 libnih-dbus1 libnih1 systemd
   systemd-shim
Suggested packages:
   systemd-ui systemd-container policykit-1 pm-utils
The following NEW packages will be installed:
   cgmanager libcgmanager0 libcryptsetup4 libnih-dbus1 libnih1 
libpam-systemd
   systemd systemd-shim
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3,075 kB of archives.
After this operation, 10.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
grave bugs of systemd (→ 231-6) <Outstanding>
  b1 - #837759 - network configuration stops working reliably
Summary:
  systemd(1 bug)
Are you sure you want to install/upgrade the above packages? [Y/n/?/...] y
Selecting previously unselected package libcryptsetup4:i386.
(Reading database ... 214728 files and directories currently installed.)
Preparing to unpack .../0-libcryptsetup4_2%3a1.7.0-2_i386.deb ...
Unpacking libcryptsetup4:i386 (2:1.7.0-2) ...
Selecting previously unselected package systemd.
Preparing to unpack .../1-systemd_231-6_i386.deb ...
Unpacking systemd (231-6) ...
Selecting previously unselected package libnih1.
Preparing to unpack .../2-libnih1_1.0.3-6_i386.deb ...
Unpacking libnih1 (1.0.3-6) ...
Selecting previously unselected package libnih-dbus1.
Preparing to unpack .../3-libnih-dbus1_1.0.3-6_i386.deb ...
Unpacking libnih-dbus1 (1.0.3-6) ...
Selecting previously unselected package libcgmanager0:i386.
Preparing to unpack .../4-libcgmanager0_0.41-2_i386.deb ...
Unpacking libcgmanager0:i386 (0.41-2) ...
Selecting previously unselected package cgmanager.
Preparing to unpack .../5-cgmanager_0.41-2_i386.deb ...
Unpacking cgmanager (0.41-2) ...
Selecting previously unselected package systemd-shim.
Preparing to unpack .../6-systemd-shim_10-2_i386.deb ...
Adding 'diversion of 
/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service to 
/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.systemd 
by systemd-shim'
Unpacking systemd-shim (10-2) ...
Selecting previously unselected package libpam-systemd:i386.
Preparing to unpack .../7-libpam-systemd_231-6_i386.deb ...
Unpacking libpam-systemd:i386 (231-6) ...
Processing triggers for libc-bin (2.24-3) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for dbus (1.10.10-1) ...
Setting up libnih1 (1.0.3-6) ...
Setting up libnih-dbus1 (1.0.3-6) ...
Setting up libcryptsetup4:i386 (2:1.7.0-2) ...
Setting up libcgmanager0:i386 (0.41-2) ...
Setting up cgmanager (0.41-2) ...
Created symlink 
/etc/systemd/system/multi-user.target.wants/cgmanager.service → 
/lib/systemd/system/cgmanager.service.
Created symlink 
/etc/systemd/system/multi-user.target.wants/cgproxy.service → 
/lib/systemd/system/cgproxy.service.
[ ok ] Starting cgroup management daemon: cgmanager.
[ ok ] Starting cgroup management proxy daemon: cgproxy.
Setting up systemd (231-6) ...
Created symlink 
/etc/systemd/system/getty.target.wants/getty at tty1.service → 
/lib/systemd/system/getty at .service.
Created symlink 
/etc/systemd/system/multi-user.target.wants/remote-fs.target → 
/lib/systemd/system/remote-fs.target.
Created symlink 
/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service → 
/lib/systemd/system/systemd-timesyncd.service.
Initializing machine ID from D-Bus machine ID.
Adding group `systemd-journal' (GID 119) ...
Done.
Setting up systemd-shim (10-2) ...
Setting up libpam-systemd:i386 (231-6) ...
Processing triggers for libc-bin (2.24-3) ...
Processing triggers for dbus (1.10.10-1) ...
sid:~#
sid:~# grep systemd /etc/pam.d/*
/etc/pam.d/common-session:session       optional        pam_systemd.so
/etc/pam.d/runuser-l:-session   optional        pam_systemd.so
/etc/pam.d/systemd-user:# This file is part of systemd.
/etc/pam.d/systemd-user:# Used by systemd --user instances.
/etc/pam.d/systemd-user:session optional pam_systemd.so
sid:~#

During postinst of systemd the line is inserted. So if your system does 
not run systemd the line is missing.

H.
-- 
http://www.hilmar-preusse.de.vu/   #206401 http://counter.li.org



More information about the Pkg-proftpd-maintainers mailing list