Skip to content

PAM Integration

Scott edited this page Nov 22, 2026 · 3 revisions

Note

NixOS users should see NixOS for NixOS-specific setup.

Warning

Incorrect PAM configuration can lock you out. Keep a root shell or another recovery path open while editing PAM files, and keep password authentication available as a fallback.

Howdy Next integrates with Linux PAM through pam_howdy.so. For module syntax, workaround= semantics, /dev/uinput focus caveats, and security notes, read:

man pam_howdy

Verify recognition outside PAM (sudo howdy test) before changing any PAM configuration.

Arch Linux Shared Stack

For standard Arch Linux authentication flows, add pam_howdy.so to /etc/pam.d/system-auth so services that include the shared stack can use it.

Important

PAM stacks vary across package versions and local setups. Compare the snippet below with your current /etc/pam.d/system-auth and adjust [success=N ...] jump counts to match your layout.

Example auth section with Howdy first, then password and fingerprint fallback:

auth       required                    pam_faillock.so      preauth
-auth      [success=5 default=ignore]  pam_systemd_home.so
auth       [success=4 default=ignore]  pam_howdy.so         workaround=native
auth       [success=3 default=ignore]  pam_unix.so          try_first_pass nullok
auth       [success=2 default=bad]     pam_fprintd.so
auth       [default=die]               pam_faillock.so      authfail
auth       optional                    pam_permit.so
auth       required                    pam_env.so
auth       required                    pam_faillock.so      authsucc

Keep your distribution's existing account, password, and session sections unchanged.

Graphical Prompts

Graphical PAM consumers often lack a usable TTY for workaround=native. Where Howdy must dismiss a concurrent graphical password prompt, use:

auth  sufficient  pam_howdy.so workaround=native-input

See man pam_howdy for the /dev/uinput focus behavior and Polkit 127 Compatibility for polkit 127+ sandboxing.

Lock Screens

Lock screens that invoke PAM before or during password entry can use the shared system-auth stack. Password-first lock screens collect input before calling PAM and need a service-specific PAM file instead — see Lock Screens for Waylock, Omarchy, and post-update guidance.

Testing and Rollback

Test with a low-risk command before trying graphical login or a lock screen:

sudo -k
sudo true

To temporarily disable Howdy without editing PAM files, run sudo howdy disable 1 (re-enable with 0; see man howdy). If PAM authentication fails, see Troubleshooting.

Warning

Facial recognition is weaker than password authentication. Keep password authentication available as a fallback and never use Howdy as the sole authentication method.

Clone this wiki locally