fix: login-PAM fingerprint-frei (Noctalia-Lock Passwort sofort)

This commit is contained in:
humocs-man committed 2026-10-06 07:09:35 +02:00
1 parent e97d7b9cb1
commit aba1ca278d
1 file changed
+14
+14
View File
@@ -113,6 +113,20 @@ grep -Eq '^auth[[:space:]]+(substack|include)[[:space:]]+password-auth' /etc/pam
grep -Eq '^auth[[:space:]]+(substack|include)[[:space:]]+system-auth' /etc/pam.d/greetd && { echo "FEHLER: auth system-auth-Include noch in /etc/pam.d/greetd"; exit 1; } grep -Eq '^auth[[:space:]]+(substack|include)[[:space:]]+system-auth' /etc/pam.d/greetd && { echo "FEHLER: auth system-auth-Include noch in /etc/pam.d/greetd"; exit 1; }
grep -q 'pam_gnome_keyring\.so' /etc/pam.d/greetd || { echo "FEHLER: Keyring-PAM fehlt in /etc/pam.d/greetd"; exit 1; } grep -q 'pam_gnome_keyring\.so' /etc/pam.d/greetd || { echo "FEHLER: Keyring-PAM fehlt in /etc/pam.d/greetd"; exit 1; }
# Noctalia-Lock nutzt PAM-Service "login" (Upstream: src/shell/lockscreen/
# lock_screen.cpp). system-auth enthaelt pam_fprintd; Noctalia treibt den
# Reader gleichzeitig per D-Bus ("can't share the sensor") -> Passwort hing
# bis zum Fingerprint-Timeout. Daher login-Auth auf password-auth umhaengen
# (fingerprint-frei, gleiche Technik wie greetd oben). Finger am Lock kommt
# weiter per D-Bus sofort, Passwort per PAM sofort. /etc/pam.d/login ist
# kein authselect-File (bleibt bei Profil-Updates erhalten).
if grep -Eq '^auth[[:space:]]+(substack|include)[[:space:]]+system-auth' /etc/pam.d/login; then
sed -i -E 's/^auth([[:space:]]+(substack|include)[[:space:]]+)system-auth([[:space:]]*)$/auth\1password-auth\3/' /etc/pam.d/login
echo "login-PAM: auth-Substack auf password-auth umgehaengt (fingerprint-frei fuer Noctalia-Lock)"
fi
grep -Eq '^auth[[:space:]]+(substack|include)[[:space:]]+password-auth' /etc/pam.d/login || { echo "FEHLER: password-auth-Substack fehlt in /etc/pam.d/login"; exit 1; }
grep -Eq '^auth[[:space:]]+(substack|include)[[:space:]]+system-auth' /etc/pam.d/login && { echo "FEHLER: auth system-auth-Include noch in /etc/pam.d/login"; exit 1; }
# bootc-Hygiene: /var-Inhalte aus dem Build werden beim Deployment verworfen # bootc-Hygiene: /var-Inhalte aus dem Build werden beim Deployment verworfen
# und wuerden nur den var-tmpfiles-Lint triggern. Die /etc-Anteile des Setups # und wuerden nur den var-tmpfiles-Lint triggern. Die /etc-Anteile des Setups
# (PAM) bleiben erhalten; /var/lib/noctalia-greeter wird zur Laufzeit via # (PAM) bleiben erhalten; /var/lib/noctalia-greeter wird zur Laufzeit via