rodrigobdz / macos-custom-auth

Define YubiKey and TouchID as authentication methods on macOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

macos-custom-auth

Enables TouchID and YubiKey as authentication methods by modifying your Pluggable Authentication Modules (PAM).

After each macOS update, the PAM config is reset to the default. This script will replace the default PAM config with one that enables TouchID and YubiKey as authentication methods.

Disclaimer

WARNING: This is a proof of concept. Use at your own risk!

IMPORTANT: Back up your system before using this script.

DANGER: It is considered a security risk to modify your PAM config and it could lock you out of your system forever.

Use this script only if you understand the risks.

Requirements

Usage

  • Enable TouchID and YubiKey as authentication methods

    Compares changes, backs up existing modules in /etc/pam.d/ and replaces them with the contents of ./etc/pam.d/.

    sudo ./script/replace-pam-d-modules

Further Reading

About

Define YubiKey and TouchID as authentication methods on macOS.

License:MIT License


Languages

Language:Shell 100.0%