Skip to content

Instantly share code, notes, and snippets.

@Leisuure
Leisuure / touchid_sudo.sh
Last active January 12, 2022 16:46 — forked from RichardBronosky/touchid_sudo.sh
Use TouchID for sudo on modern MacBook Pro machines
#!/bin/bash
# curl -sL https://gist.github.com/Leisuure/85dc4a4847be38c22594aa7ca4b8f118/raw/touchid_sudo.sh | bash
# This script is ready to copy-paste in whole, or just the line above (without the leading #)
# Use TouchID for sudo on modern MacBook Pro machines
# This script adds a single line to the top of the PAM configuration for sudo
# See: https://apple.stackexchange.com/q/259093/41827 for more info.
touchid_sudo(){