Bug#242641: kdm does not obey pam_limits
Package: kdm
Version: 4:3.1.5-2
Severity: normal
KDM allows multiple logins although pam_limits is listed in
/etc/pam.d/kdm:
@include common-auth
@include common-account
@include common-password
@include common-session
auth required pam_nologin.so
auth required pam_env.so
session required pam_limits.so debug
and the user I try is specifically not allowed to do multiple logins
with this line in /etc/security/limits.conf:
kvv - maxlogins 1
At login the follwoing messages are added to /var/log/auth.log:
Apr 7 23:24:45 vivaldi kdm[15655]: (pam_unix) session opened for user
kvv by (uid=0)
Apr 7 23:24:45 vivaldi pam_limits[15655]: reading settings from
'/etc/security/limits.conf'
Apr 7 23:24:45 vivaldi pam_limits[15655]: process_limit: processing -
maxlogins 1 for USER
Apr 7 23:24:45 vivaldi pam_limits[15655]: checking logins for 'kvv'
(maximum of 1)
Apr 7 23:24:45 vivaldi pam_limits[15655]: Too many logins (max 1) for
kvv
Even though these messages indicate that I am not allowed to login, KDE
starts initialising and logs me in.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.25-1-686
Locale: LANG=C, LC_CTYPE=C
Versions of packages kdm depends on:
ii debconf 1.4.16 Debian configuration management sy
ii kdelibs4 4:3.1.5-1 KDE core libraries
ii libart-2.0-2 2.3.16-3 Library of functions for 2D graphi
ii libaudio2 1.6c-3 The Network Audio System (NAS). (s
ii libc6 2.3.2.ds1-11 GNU C Library: Shared libraries an
ii libfam0c102 2.7.0-5 client library to control the FAM
ii libfontconfig1 2.2.2-1 generic font configuration library
ii libfreetype6 2.1.7-2 FreeType 2 font engine, shared lib
ii libgcc1 1:3.3.3-5 GCC support library
ii libpam0g 0.76-16 Pluggable Authentication Modules l
ii libpng12-0 1.2.5.0-5 PNG library - runtime
ii libqt3c102-mt 3:3.2.3-2 Qt GUI Library (Threaded runtime v
ii libstdc++5 1:3.3.3-5 The GNU Standard C++ Library v3
ii libxcursor1 1.0.2-5 X Cursor management library
ii libxft2 2.1.2-6 FreeType-based font drawing librar
ii libxrender1 0.8.3-7 X Rendering Extension client libra
ii xbase-clients 4.3.0-7 miscellaneous X clients
ii xlibmesa-gl [libgl1] 4.3.0-7 Mesa 3D graphics library [XFree86]
ii xlibs 4.3.0-7 X Window System client libraries m
ii zlib1g 1:1.2.1-5 compression library - runtime
-- debconf information:
kdm/stop_running_server_with_children: false
* kdm/default_servers_nolisten_tcp:
* kdm/default_servers_100dpi:
shared/default-x-display-manager: kdm
* kdm/default_nolisten_udp:
kdm/daemon_name: /usr/bin/kdm
kdm/oldconfig:
Reply to: