IT lexicon › Security › BSD Auth

BSD Auth

Security På svenska → Updated: 2026-11-09

The BSD answer to PAM: authentication methods run as separate programs instead of being loaded into whoever is asking.

The framework came from BSDi's commercial BSD/OS and was adopted by OpenBSD in version 2.9 in 2001. Each method — password, S/Key, RADIUS, YubiKey — is its own small program in /usr/libexec/auth, with names like login_passwd and login_radius. A program wanting to authenticate someone launches the right helper, talks to it over a simple channel and gets back a yes or no. Allowed methods are set per login class in login.conf, and users can pick a style with the name:style syntax.

The difference from PAM is architectural. PAM loads shared libraries straight into the address space of a privileged program, so a bug in a module becomes a bug in sshd. BSD Auth keeps that code in another process — slower and less flexible, but much easier to reason about.

← Back to the lexicon