Leap 16: wtmpdb / last zeigt keine User-Accounts

Hinweis: In dem Thema Leap 16: wtmpdb / last zeigt keine User-Accounts gibt es 20 Antworten auf 3 Seiten. Der letzte Beitrag () befindet sich auf der letzten Seite.
  • Seit dem Update auf Leap 16 habe ich auf einem meiner Systeme das Problem, dass beim Kommando last keine User-Logins mehr angezeigt werden. Dort findet sich nur noch root und reboot. Ich bin mir nicht sicher, ob das ein Thema der Anzeige oder des Logs in der DB ist.

    Logins per ssh werden wohl geloggt, Anmeldungen an der Oberfläche (sddm, fbrint.so) nicht.

    Was kann ich tun?

    Für den Inhalt des Beitrages 325251 haftet ausdrücklich der jeweilige Autor: elhennig

  • Code
    # last -20
    e8864    pts/5        192.168.10.23    Thu Feb 26 09:41 - 09:42  (00:00)
    reboot   system boot  6.12.0-160000.25 Thu Feb 26 06:54 - still running
    reboot   system boot  6.12.0-160000.25 Wed Feb 25 13:48 - 18:07  (04:18)
    ...
    root     pts/4        192.168.10.23    Thu Feb 19 09:13 - 09:15  (00:01)
    reboot   system boot  6.12.0-160000.9- Thu Feb 19 08:14 - 09:34  (01:19)
    
    wtmpdb begins Thu Feb 19 08:14:11 2026

    Der User-Account ist e8864 und der hier gelistete Eintrag ist ein Login per ssh gewesen.

    Für den Inhalt des Beitrages 325253 haftet ausdrücklich der jeweilige Autor: elhennig

  • Code
    # wtmpdb last -n 20
    e8864    pts/5        192.168.10.23    Thu Feb 26 09:41 - 09:42  (00:00)
    reboot   system boot  6.12.0-160000.25 Thu Feb 26 06:54 - still running
    reboot   system boot  6.12.0-160000.25 Wed Feb 25 13:48 - 18:07  (04:18)
    ...
    root     pts/4        192.168.10.23    Thu Feb 19 09:13 - 09:15  (00:01)
    reboot   system boot  6.12.0-160000.9- Thu Feb 19 08:14 - 09:34  (01:19)
    
    wtmpdb begins Thu Feb 19 08:14:11 2026
    Code
    # ls -alZ /var/lib/wtmpdb/
    total 12
    drwxr-xr-x. 1 root root system_u:object_r:wtmpdb_t:s0    14 Feb 26 09:42 .
    drwxr-xr-x. 1 root root system_u:object_r:var_lib_t:s0 1526 Feb 11 13:26 ..
    -rw-------. 1 root root system_u:object_r:wtmpdb_t:s0  8192 Feb 26 09:42 wtmp.db
    Code
    # grep -i session /etc/pam.d/postlogin-session
    session optional        pam_wtmpdb.so   skip_if=sshd 

    Für den Inhalt des Beitrages 325257 haftet ausdrücklich der jeweilige Autor: elhennig

  • Hat jemand eine Idee? Ich habe einen anderen Rechner mit ähnlichem Setup (oben genannte Files stimmen überein) und da passt die Ausgabe.

    Für den Inhalt des Beitrages 325302 haftet ausdrücklich der jeweilige Autor: elhennig

  • Hatst du an der postlogin-session Datei etwas geändert, denn bei mir werden noch Kommentare angezeigt:

    Code
    linux64:/home/stephan # grep -i session /etc/pam.d/postlogin-session
    # for i in account auth password session session-nonlogin; do \
    # for i in account auth password session; do \
    # Afterwards common-{account, auth, password, session, session-nonlogin}
    # and postlogin-{account, auth, password, session} can be
    # Session-related modules common to all or login services
    # at the start and end of sessions of *any* kind (both interactive and
    session optional        pam_wtmpdb.so   skip_if=sshd 

    Auch einmal:

    Code
    linux64:/home/stephan # ls -alZ /etc/pam.d/postlogin-session
    lrwxrwxrwx. 1 root root system_u:object_r:etc_t:s0 20  5. Nov 20:46 /etc/pam.d/postlogin-session -> postlogin-session-pc

    Für den Inhalt des Beitrages 325304 haftet ausdrücklich der jeweilige Autor: Sauerland