Skip to content
Projets

À propos

 Prise en charge permanente de Touch ID pour `sudo` 👆

Outils de développement

Comment ces chiffres sont mesurés

What you can do

  • Fast & reliable
  • Written in Bash — no dependencies
  • pam_reattach support for tmux/screen compatibility (GUI session reattachment)
  • Supports modern and legacy systems: For macOS 13 and below, see LEGACY_MACOS.md

Progression mesurée des étoiles

in 24h
0
in 7 days
+1
in 15 days
+2
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original
Icon

sudo-touchid

Downloads Donate

Native and reliable TouchID support for sudo

Try it out     without installing

curl -sL git.io/sudo-touch-id | sh

Now sudo is great, just like Safari — with your fingerprint in Terminal.

Don't worry, you can also reverse it

Result:

Preview

Just type git.io/sudotouchid to go here.

Features

  • Fast & reliable
  • Written in Bash — no dependencies
  • pam_reattach support for tmux/screen compatibility (GUI session reattachment)
  • Supports modern and legacy systems: For macOS 13 and below, see LEGACY_MACOS.md

Install

Via 🍺 Homebrew

brew install artginzburg/tap/sudo-touchid

Check out the formula if you're interested


Usage

Copy and run this command:

sudo-touchid

It adds TouchID to sudo configuration, or migrates an existing legacy configuration if you're upgrading from macOS 13 or below.

# Usage:
sudo-touchid [options]
             [-v,  --version]   # Output installed version
             [-d,  --disable]   # Remove TouchID from sudo config
             [--with-reattach]  # Include pam_reattach.so for tmux/screen support
             [--migrate]        # Migrate from legacy configuration
             [--verbose]        # Show detailed output
             [-q,  --quiet]     # Show minimal output (errors only)
             [-y,  --yes]       # Skip confirmation prompts (non-interactive mode)

if not installed, can be used via curl bundled with macOS

sh <( curl -sL git.io/sudo-touch-id )

Accepts the same arguments, like -d or -v.


Why?

  • Productivity: Automates TouchID setup
  • Lightweight: Small Bash script, no builds or Xcode required
  • Reliable: Persistent configuration across system updates

How does it work?

For macOS 14+:

  • Creates /etc/pam.d/sudo_local with TouchID configuration
  • Never modifies system-managed /etc/pam.d/sudo file

All versions:

  • Has a --disable (-d) option that removes all TouchID configurations.
  • Optional --with-reattach for GUI session reattachment support
  • Creates backup files during migration
  • Automatically detects and migrates legacy configurations

Manual installation

Just save sudo-touchid.sh as /usr/local/bin/sudo-touchid with execute permissions

See LEGACY_MACOS.md for additional considerations on older systems


Related

  • tmux/screen support: pam_reattach module (built-in via --with-reattach)
  • Apple Watch support: pam_watchid module
  • Disable password prompt: Change %admin ALL=(ALL) ALL to %admin ALL=(ALL) NOPASSWD: ALL in /etc/sudoers

Explorer des projets similaires

Chargement…