[Pkg-shadow-devel] Bug#1068229: Bug#1068229: login: remove lastlog, remove pam_lastlog.so from PAM config [patch]

Serge E. Hallyn serge at hallyn.com
Thu May 30 17:19:50 BST 2024


Thanks.  Applied to https://salsa.debian.org/debian/shadow

On Thu, May 30, 2024 at 02:32:24AM +0200, Chris Hofstaedtler wrote:
> Control: tags 1068229 + patch
> 
> Hi,
> 
> here's a patch to achieve the requested changes.
> 
> When this is uploaded, we can have lastlog2 take over.
> 
> Please let me know about your plan on uploading.
> 
> Chris
> 

> diff -Nru shadow-4.13+dfsg1/debian/changelog shadow-4.13+dfsg1/debian/changelog
> --- shadow-4.13+dfsg1/debian/changelog	2024-02-04 21:28:27.000000000 +0100
> +++ shadow-4.13+dfsg1/debian/changelog	2024-05-30 02:23:58.000000000 +0200
> @@ -1,3 +1,11 @@
> +shadow (1:4.13+dfsg1-4.1) UNRELEASED; urgency=medium
> +
> +  * Non-maintainer upload.
> +  * Drop pam_lastlog.so from config. (Closes: #1068229)
> +  * Stop installing lastlog binary.
> +
> + -- Chris Hofstaedtler <zeha at debian.org>  Thu, 30 May 2024 02:23:58 +0200
> +
>  shadow (1:4.13+dfsg1-4) unstable; urgency=medium
>  
>    [ Helmut Grohne ]
> diff -Nru shadow-4.13+dfsg1/debian/login.install shadow-4.13+dfsg1/debian/login.install
> --- shadow-4.13+dfsg1/debian/login.install	2024-02-04 21:28:27.000000000 +0100
> +++ shadow-4.13+dfsg1/debian/login.install	2024-05-30 02:23:58.000000000 +0200
> @@ -2,6 +2,5 @@
>  usr/share/locale/*/LC_MESSAGES/shadow.mo
>  sbin/nologin usr/sbin
>  usr/bin/faillog
> -usr/bin/lastlog
>  usr/bin/newgrp
>  bin/login usr/bin
> diff -Nru shadow-4.13+dfsg1/debian/login.manpages shadow-4.13+dfsg1/debian/login.manpages
> --- shadow-4.13+dfsg1/debian/login.manpages	2024-02-04 21:28:27.000000000 +0100
> +++ shadow-4.13+dfsg1/debian/login.manpages	2024-05-30 02:23:58.000000000 +0200
> @@ -4,7 +4,6 @@
>  usr/share/man/*/man5/faillog.5
>  usr/share/man/*/man5/login.defs.5
>  usr/share/man/*/man8/faillog.8
> -usr/share/man/*/man8/lastlog.8
>  usr/share/man/*/man8/nologin.8
>  usr/share/man/man1/login.1
>  usr/share/man/man1/newgrp.1
> @@ -12,5 +11,4 @@
>  usr/share/man/man5/faillog.5
>  usr/share/man/man5/login.defs.5
>  usr/share/man/man8/faillog.8
> -usr/share/man/man8/lastlog.8
>  usr/share/man/man8/nologin.8
> diff -Nru shadow-4.13+dfsg1/debian/login.pam shadow-4.13+dfsg1/debian/login.pam
> --- shadow-4.13+dfsg1/debian/login.pam	2024-02-04 21:28:27.000000000 +0100
> +++ shadow-4.13+dfsg1/debian/login.pam	2024-05-30 02:23:58.000000000 +0200
> @@ -77,10 +77,6 @@
>  # (Replaces the use of /etc/limits in old login)
>  session    required   pam_limits.so
>  
> -# Prints the last login info upon successful login
> -# (Replaces the `LASTLOG_ENAB' option from login.defs)
> -session    optional   pam_lastlog.so
> -
>  # Prints the status of the user's mailbox upon successful login
>  # (Replaces the `MAIL_CHECK_ENAB' option from login.defs). 
>  #
> diff -Nru shadow-4.13+dfsg1/debian/not-installed shadow-4.13+dfsg1/debian/not-installed
> --- shadow-4.13+dfsg1/debian/not-installed	2024-02-04 21:28:27.000000000 +0100
> +++ shadow-4.13+dfsg1/debian/not-installed	2024-05-30 02:23:58.000000000 +0200
> @@ -15,6 +15,7 @@
>  etc/pam.d/useradd
>  etc/pam.d/userdel
>  etc/pam.d/usermod
> +usr/bin/lastlog
>  usr/bin/sg
>  usr/lib/*/libsubid.la
>  usr/sbin/logoutd
> @@ -25,6 +26,7 @@
>  usr/share/man/*/man3/getspnam.3
>  usr/share/man/*/man3/shadow.3
>  usr/share/man/*/man5/suauth.5
> +usr/share/man/*/man8/lastlog.8
>  usr/share/man/*/man8/logoutd.8
>  usr/share/man/man1/groups.1
>  usr/share/man/man1/logoutd.1
> @@ -32,5 +34,6 @@
>  usr/share/man/man3/getspnam.3
>  usr/share/man/man3/shadow.3
>  usr/share/man/man5/suauth.5
> +usr/share/man/man8/lastlog.8
>  usr/share/man/man8/logoutd.8
>  

> _______________________________________________
> Pkg-shadow-devel mailing list
> Pkg-shadow-devel at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-shadow-devel



More information about the Pkg-shadow-devel mailing list