Skip to content

Instantly share code, notes, and snippets.

View squatto's full-sized avatar
🤓
Geeking out

Scott Carpenter squatto

🤓
Geeking out
View GitHub Profile
@squatto
squatto / .enable_sudo_touchid.zsh
Created September 8, 2023 06:49
Ensure that Touch ID for sudo auth is enabled whenever the shell is loaded
# Ensure that Touch ID for sudo auth is enabled whenever the shell is loaded.
#
# IMPORTANT: This script will only work on macOS.
#
# [Description]
# macOS versions prior to Sonoma (released late 2023) overwrite
# the PAM configuration file for sudo (/etc/pam.d/sudo) every time the OS is updated.
# This means that any changes that you manually make to the file are lost,
# and you are reverted back to Touch ID for sudo auth being disabled.
# This script will automatically enable Touch ID for sudo auth whenever the shell is loaded.