macOS
brew install pam-u2flocal Homebrew formula metadata
sudo port install pam-u2fMacPorts ports tree · security/pam-u2f/Portfile · source: api.github.com
brew / rank 6594
Provides an easy way to use U2F-compliant authenticators with PAM. Version 1.4.0 via Homebrew; verified 2026-09-11. Also installable with debian: sudo apt install libpam-u2f.
install
brew install pam-u2flocal Homebrew formula metadata
sudo port install pam-u2fMacPorts ports tree · security/pam-u2f/Portfile · source: api.github.com
sudo apk add pam-u2fAlpine Linux edge package indexes · pam-u2f · source: dl-cdn.alpinelinux.org
sudo dnf install pam-u2fFedora Rawhide package metadata · pam-u2f · source: dl.fedoraproject.org
sudo pacman -S pam-u2fArch Linux sync databases · pam-u2f · source: geo.mirror.pkgbuild.com
sudo apt install libpam-u2fDebian stable package indexes · libpam-u2f · source: deb.debian.org
nix profile install nixpkgs#pam_u2fnixpkgs package indexes · pkgs/by-name/pa/pam_u2f/package.nix · source: api.github.com
sudo zypper install pam_u2fopenSUSE Tumbleweed package metadata · pam_u2f · source: download.opensuse.org
overview
Provides an easy way to use U2F-compliant authenticators with PAM
history
pam-u2f is Yubico's PAM module for authenticating Unix users with YubiKeys and other U2F- or FIDO2-compliant authenticators.
Yubico released the initial pam-u2f version in December 2014. Version 1.0.0 followed in June 2015 with XDG-based per-user mappings plus manual and interactive modes.
Version 1.1.0 migrated the implementation from the older U2F libraries to libfido2 in September 2020, adding FIDO2 capabilities including user verification, PIN verification, resident credentials, and SSH credential format.
Version 1.4.0 in March 2025 introduced the default /etc/security/pam_u2f.conf module configuration file and began a build-system transition from Autotools to CMake.
Yubico documents packages for Ubuntu, Fedora, and macOS/Homebrew, while the input metadata additionally records packages for Alpine, Debian, MacPorts, Nix, Arch, Ubuntu, and openSUSE.
The module originally targeted U2F authenticators and broadened into FIDO2, PIN, user-verification, resident-credential, and OpenSSH security-key workflows.
Administrators add pam_u2f.so to the relevant files under /etc/pam.d, typically as a required second factor after primary authentication or as a sufficient module for passwordless PIN or biometric authentication.
Users enroll a connected authenticator with pamu2fcfg and store its mapping in the per-user XDG location, while administrators can instead maintain a central mapping such as /etc/u2f_mappings.
pam-u2f connects hardware-backed FIDO authentication to the traditional Unix PAM stack. It is attractive to system integrators because it supports both per-user and centrally administered mappings and can provide either a second factor or passwordless authentication.
Its authentication-critical placement makes packaging and upgrades unusually sensitive: incorrect PAM configuration can cause lockouts, and its release history includes security hardening and fixes for authentication bypass or unsafe debug handling.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
/etc/pam.d/*path supplied with pam_u2f.so conf=path/to/pam_u2f.confCredential-bearing paths to review before unattended agent runs.
$XDG_CONFIG_HOME/Yubico/u2f_keys~/.config/Yubico/u2f_keys/etc/u2f_mappingsexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
pamu2fcfg | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://developers.yubico.com/pam-u2f/
install metadata
| Package key | brew:pam-u2f |
|---|---|
| Version | 1.4.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/pam-u2f |
| Homepage | https://developers.yubico.com/pam-u2f/ |
| Repository | https://github.com/Yubico/pam-u2f |
| Upstream docs | https://developers.yubico.com/pam-u2f/ |
| License | BSD-2-Clause |
| Source archive | https://developers.yubico.com/pam-u2f/Releases/pam_u2f-1.4.0.tar.gz |
| Last updated | 2026-09-11T18:19:01Z |
| Pulse | updated |
| Dependencies | libfido2, openssl@3 |
| Build dependencies | asciidoc, autoconf, automake, libtool, pkgconf |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
| Caveats | To use a U2F key for PAM authentication, specify the full path to the module ($HOMEBREW_PREFIX/opt/pam-u2f/lib/pam/pam_u2f.so) in a PAM configuration. You can find all PAM configurations in /etc/pam.d. For further installation instructions, please visit https://developers.yubico.com/pam-u2f/#installation. |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pam-u2f |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libpam-u2f 1.4.0-1
universal 2nd factor (U2F) PAM module
https://developers.yubico.com/pam-u2f/
sudo apt install libpam-u2fpamu2fcfg 1.4.0-1
universal 2nd factor (U2F) PAM module command-line helper tool
https://developers.yubico.com/pam-u2f/
sudo apt install pamu2fcfgpam_u2f
nix profile install nixpkgs#pam_u2flibpam-u2f 1.1.0-1.1build3
universal 2nd factor (U2F) PAM module
https://developers.yubico.com/pam-u2f/
sudo apt install libpam-u2fpamu2fcfg 1.1.0-1.1build3
universal 2nd factor (U2F) PAM module command-line helper tool
https://developers.yubico.com/pam-u2f/
sudo apt install pamu2fcfgpam-u2f 1.4.0-r0
Pluggable Authentication Module (PAM) for U2F
https://developers.yubico.com/pam-u2f/
sudo apk add pam-u2fpam-u2f-doc 1.4.0-r0
Pluggable Authentication Module (PAM) for U2F (documentation)
https://developers.yubico.com/pam-u2f/
sudo apk add pam-u2f-docpam-u2f 1.4.0-7.fc45
Implements PAM authentication over U2F
https://github.com/Yubico/pam-u2f
sudo dnf install pam-u2fpamu2fcfg 1.4.0-7.fc45
Configures PAM authentication over U2F
https://github.com/Yubico/pam-u2f
sudo dnf install pamu2fcfgpam-u2f 1.4.0-2
Universal 2nd Factor (U2F) PAM authentication module from Yubico
https://developers.yubico.com/pam-u2f
sudo pacman -S pam-u2fpam_u2f 1.4.0-1.5
U2F authentication integration into PAM
sudo zypper install pam_u2fpam-u2f
sudo port install pam-u2fsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.