• Re: absent last login report on vtty login

    From Greg Wooledge@21:1/5 to Felix Miata on Tue Nov 5 14:30:01 2024
    On Tue, Nov 05, 2024 at 08:17:57 -0500, Felix Miata wrote:
    This used to be a normal announcement on vtty login. On Trixie it's missing. What's responsible for it?

    I think it's part of /etc/pam.d/login . On Debian 12, that file
    includes this bit:

    # Prints the last login info upon successful login
    # (Replaces the `LASTLOG_ENAB' option from login.defs)
    session optional pam_lastlog.so

    I'm not *certain* that's it, but it looks like it.

    Is it different on Trixie?

    No idea. I don't run testing unless it's really close to release.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Felix Miata@21:1/5 to All on Tue Nov 5 14:20:01 2024
    This used to be a normal announcement on vtty login. On Trixie it's missing. What's responsible for it? Is it different on Trixie? On Tumbleweed it's a separate package lastlog or something like that. Search for similar for Trixie comes up empty. :(
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Charles Curley@21:1/5 to Felix Miata on Tue Nov 5 15:20:01 2024
    On Tue, 5 Nov 2024 08:17:57 -0500
    Felix Miata <[email protected]> wrote:

    This used to be a normal announcement on vtty login. On Trixie it's
    missing.

    Odd. It's present on the VM I recently installed using a recent weekly
    build, "testing _Trixie_ - Official Snapshot amd64 NETINST with
    firmware 20241028-03:22]".

    --
    Does anybody read signatures any more?

    https://charlescurley.com
    https://charlescurley.com/blog/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Felix Miata@21:1/5 to All on Tue Nov 5 16:10:01 2024
    Greg Wooledge composed on 2024-11-05 08:27 (UTC-0500):

    On Tue, Nov 05, 2024 at 08:17:57 -0500, Felix Miata wrote:

    This used to be a normal announcement on vtty login. On Trixie it's missing. >> What's responsible for it?

    I think it's part of /etc/pam.d/login . On Debian 12, that file
    includes this bit:

    # Prints the last login info upon successful login
    # (Replaces the `LASTLOG_ENAB' option from login.defs)
    session optional pam_lastlog.so

    String lastlog is absent from that file here, same as the file's section you quoted. According to apt-file, there is no pam_lastlog.so on the system either, which in Bookworm is provided by libpam-modules, which is installed on Trixie.

    I'm not *certain* that's it, but it looks like it.

    Is it different on Trixie?

    No idea. I don't run testing unless it's really close to release.
    It certainly appears it must work differently on Trixie.
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Felix Miata@21:1/5 to All on Tue Nov 5 15:30:02 2024
    Charles Curley composed on 2024-11-05 09:15 (UTC-0500):

    On Tue, 5 Nov 2024 08:17:57 -0500 Felix Miata wrote:

    This used to be a normal announcement on vtty login. On Trixie it's
    missing.

    Odd. It's present on the VM I recently installed using a recent weekly
    build, "testing _Trixie_ - Official Snapshot amd64 NETINST with
    firmware 20241028-03:22]".

    I have a dozen installations, all upgrades from Bookworm, most if not all done last year. I haven't tracked whether all have the problem, but I do think that's
    the case.

    Kernel version announces, but not last login.
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to Felix Miata on Tue Nov 5 16:20:01 2024
    On Tue, Nov 05, 2024 at 10:08:51AM -0500, Felix Miata wrote:
    Greg Wooledge composed on 2024-11-05 08:27 (UTC-0500):

    On Tue, Nov 05, 2024 at 08:17:57 -0500, Felix Miata wrote:

    This used to be a normal announcement on vtty login. On Trixie it's missing.
    What's responsible for it?

    I think it's part of /etc/pam.d/login . On Debian 12, that file
    includes this bit:

    # Prints the last login info upon successful login
    # (Replaces the `LASTLOG_ENAB' option from login.defs)
    session optional pam_lastlog.so

    String lastlog is absent from that file here, same as the file's section you quoted. According to apt-file, there is no pam_lastlog.so on the system either,
    which in Bookworm is provided by libpam-modules, which is installed on Trixie.

    I'm not *certain* that's it, but it looks like it.

    Is it different on Trixie?

    No idea. I don't run testing unless it's really close to release.
    It certainly appears it must work differently on Trixie.

    In a hurry now, but this:

    https://packages.debian.org/trixie/admin/libpam-lastlog2

    seems to provide a clue.

    Cheers
    --
    t

    -----BEGIN PGP SIGNATURE-----

    iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZyo17AAKCRAFyCz1etHa Rj2OAJ9ys5eHzC2Z9Ixtyy13y3hB4HzB5wCeMDRO36Z4TPkQl2BEbPPb9xoW4iU=
    =9+KJ
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Charles Curley@21:1/5 to Charles Curley on Tue Nov 5 18:10:01 2024
    On Tue, 5 Nov 2024 07:15:50 -0700
    Charles Curley <[email protected]> wrote:

    On Tue, 5 Nov 2024 08:17:57 -0500
    Felix Miata <[email protected]> wrote:

    This used to be a normal announcement on vtty login. On Trixie it's missing.

    Odd. It's present on the VM I recently installed using a recent weekly
    build, "testing _Trixie_ - Official Snapshot amd64 NETINST with
    firmware 20241028-03:22]".

    Odder. Felix Miata <[email protected]> specifically mentioned a
    vtty. I made the statement above after logging in via SSH. So I logged
    in to the same VM via a virtual console. No last login message there. I
    confirm that the message is present in a Bookworm virtual console.

    --
    Does anybody read signatures any more?

    https://charlescurley.com
    https://charlescurley.com/blog/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Felix Miata@21:1/5 to All on Tue Nov 5 19:40:01 2024
    Felix Miata composed on 2024-11-05 08:17 (UTC-0500):

    This used to be a normal announcement on vtty login. On Trixie it's missing. What's responsible for it? Is it different on Trixie? On Tumbleweed it's a separate package lastlog or something like that. Search for similar for Trixie
    comes up empty. :(

    I don't know how I managed to come up empty, but on retry after reading thread replies, two I should have found turned up - libpam-lastlog2 & liblastlog2-2. Now
    in /etc/pam.d/common-session I have the session optional pam_lastlog.so that Greg
    pointed to, but after systemctl daemon-reload, no change, and also no change after
    reboot. systemctl list-unit-files | grep last returns null. There's no man page for common-session. pam-auth-update common-session has (and had), "Maintain lastlog2 database" enabled, yet still no last login after another reboot to multi-user.target. / filesystem has Inode size 128. Could that be it? Nope. I was
    able to change it to 256 with tune2fs, but still no last login after yet another
    reboot. :(
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Charles Curley@21:1/5 to Jeffrey Walton on Tue Nov 5 20:10:02 2024
    On Tue, 5 Nov 2024 13:37:26 -0500
    Jeffrey Walton <[email protected]> wrote:

    I believe the message in SSH is due to /etc/ssh/sshd_config. Search
    for "banner."

    I think not. My sshd_config files on both bookworm and trixie have
    banner commented out. According to the man page for that file, the
    default is no banner.

    --
    Does anybody read signatures any more?

    https://charlescurley.com
    https://charlescurley.com/blog/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Felix Miata@21:1/5 to All on Thu Nov 7 08:00:01 2024
    Felix Miata composed on 2024-11-05 13:37 (UTC-0500):

    Felix Miata composed on 2024-11-05 08:17 (UTC-0500):

    This used to be a normal announcement on vtty login. On Trixie it's missing. >> What's responsible for it? Is it different on Trixie? On Tumbleweed it's a >> separate package lastlog or something like that. Search for similar for Trixie
    comes up empty. :(

    I don't know how I managed to come up empty, but on retry after reading thread
    replies, two I should have found turned up - libpam-lastlog2 & liblastlog2-2. Now
    in /etc/pam.d/common-session I have the session optional pam_lastlog.so that Greg
    pointed to, but after systemctl daemon-reload, no change, and also no change after
    reboot. systemctl list-unit-files | grep last returns null. There's no man page
    for common-session. pam-auth-update common-session has (and had), "Maintain lastlog2 database" enabled, yet still no last login after another reboot to multi-user.target. / filesystem has Inode size 128. Could that be it? Nope. I was
    able to change it to 256 with tune2fs, but still no last login after yet another
    reboot. :(

    Another apparently needed package turned up, so the total installed now is 3: lastlog2
    liblastlog2-2
    libpam-lastlog2

    Finally it works.
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)