Skip to content

Instantly share code, notes, and snippets.

View soapergem's full-sized avatar

Gordon Myers soapergem

  • Gemovation Labs, LLC
  • Madison, Wisconsin
  • X @soapergem
View GitHub Profile
@mauvehed
mauvehed / enable_to_sudo_authenticate_with_touch_id.sh
Last active January 27, 2023 23:35
Enable sudo auth for macOS touchID via pam
#!/bin/bash
#
# credit to machupicchubeta/dotfiles/bin/enable_to_sudo_authenticate_with_touch_id.sh
set -eu
set -o pipefail
sudo chmod +w /etc/pam.d/sudo
if ! grep -Eq '^auth\s.*\spam_tid\.so$' /etc/pam.d/sudo; then
( set -e; set -o pipefail
# Add "pam_tid.so" to a first authentication