HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
YuriyGuts
persistent-touch-id-sudo
C2022–2022
YuriyGuts / persistent-touch-id-sudo

persistent-touch-id-sudo

Configures PAM on macOS via a Launch Daemon so that Touch ID for sudo is always available and persists across OS upgrades

2Distinct people
2Mentions
1Explicit recommenders
28GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Configures PAM on macOS via a Launch Daemon so that Touch ID for sudo is always available and persists across OS upgrades

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

I love using sudo with Touch ID and have been using this trick for years. The only inconvenience is that the PAM configuration always gets reverted by OS updates. I wrote a…

yuriyguts used a recommendation phrase. One indexed comment matches. This is a phrase match, not a verdict.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2022-06-15 09:15:40 UTC to 2022-06-15 11:41:31 UTC.

012022-06-15 09:00:00 UTC to 2022-06-15 10:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJun 15, 09:002022-06-15 10:00:00 UTC to 2022-06-15 11:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsJun 15, 10:002022-06-15 11:00:00 UTC to 2022-06-15 12:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJun 15, 11:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jun 15, 09:002022-06-15 09:00:00 UTC2022-06-15 10:00:00 UTC101
Jun 15, 10:002022-06-15 10:00:00 UTC2022-06-15 11:00:00 UTC000
Jun 15, 11:002022-06-15 11:00:00 UTC2022-06-15 12:00:00 UTC101

What Hacker News says

2 sources
I'm leery of configuring user code to automatically modify system files, especially security related ones. I think your tool should at least have an option to ask user confirmation, perhaps showing the expected file diff, before making its change. https://github.com/YuriyGuts/persistent-touch-id-sudo/issues... System updates are not frequent. I prefer doing it manually, and just automating a notification that it needs to be redone. I added this to my `.bashrc`: if ! grep -q "pam_tid.so" /etc/pam.d/sudo ; then echo "touch ID no longer enabled for sudo. Insert the following line as line 2 in /etc/pam.d/sudo:" echo " auth sufficient pam_tid.so # enables touch id auth for sudo" fi
In Quick Tip: Enable Touch ID for Sudo (2020)

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.