google-authenticator-libpam is a Pluggable Authentication Module (PAM) that adds one-time passcodes to Unix and Linux logins using open OATH standards. It plugs into PAM stacks for services like SSH, su, or desktop display managers, prompting users for a time-based (TOTP) or counter-based (HOTP) code after their password. A lightweight enrollment program bootstraps each account by generating a secret, printing a QR code, and writing per-user configuration with safe file permissions. Because verification happens locally, codes work offline and do not depend on any Google service, which suits high-security and air-gapped environments. Administrators can tune skew tolerance, rate limiting, emergency scratch codes, and which PAM control flags enforce 2FA for specific users or groups. The project’s design favors simplicity and auditability, keeping the runtime small and the configuration explicit so it’s easy to review in production change control.

Features

  • PAM module for TOTP and HOTP second factors
  • Per-user bootstrap with QR code enrollment and secret storage
  • Offline verification with configurable clock skew windows
  • Emergency scratch codes and rate-limit defenses
  • Fine-grained PAM policy control per service or user
  • Minimal dependencies and small attack surface

Project Samples

Project Activity

See All Activity >

Categories

Security

License

Apache License V2.0

Follow Google Authenticator PAM Library

Google Authenticator PAM Library Web Site

Other Useful Business Software
Simple, Secure Domain Registration Icon
Simple, Secure Domain Registration

Get your domain at wholesale price. Cloudflare offers simple, secure registration with no markups, plus free DNS, CDN, and SSL integration.

Register or renew your domain and pay only what we pay. No markups, hidden fees, or surprise add-ons. Choose from over 400 TLDs (.com, .ai, .dev). Every domain is integrated with Cloudflare's industry-leading DNS, CDN, and free SSL to make your site faster and more secure. Simple, secure, at-cost domain registration.
Sign up for free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Google Authenticator PAM Library!

Additional Project Details

Programming Language

C

Related Categories

C Security Software

Registered

2025-10-10