{
  "id": 22759904,
  "title": "You can use Touch ID for sudo",
  "url": "https://urgent.news/2026/11/30/you-can-use-touch-id-for-sudo",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-30T09:30:27.000Z",
  "source": {
    "name": "Lobsters",
    "slug": "lobsters",
    "url": "https://modulovalue.com/blog/touch-id-for-sudo/"
  },
  "original_language": null,
  "account": "Many users find themselves typing their password repeatedly when running commands with sudo. To avoid this, one individual switched to using Touch ID authentication. Setting this up takes only a minute. When the user attempts a sudo command, the system queries the Pluggable Authentication Modules (PAM) to verify the user's identity. Apple provides a PAM module called pam_tid.so that utilizes the fingerprint sensor instead of a password. For macOS Sonoma and later versions, there's a configuration file for local changes that remains intact during system updates. Apple even includes a template for this file, with the necessary line commented out. The system allows for matching a fingerprint as a valid form of authentication.\n\nIf the user aborts the prompt, sudo will revert to requesting the password as before, preventing any lockout issues. To test this setup, simply open a new terminal and run sudo -v. However, there's a limitation to consider. macOS will only offer Touch ID during these prompts if the screen isn't being captured. Applications like DisplayLink dock can trigger screen capture, which prevents the fingerprint recognition. To circumvent this, the user created a custom PAM module that directly uses Apple's LocalAuthentication API to request the fingerprint. This module displays its own prompt and can identify the entity requesting the authentication, displaying the entire command as well.\n\nThe author developed this module about two months ago and has been using it daily without any problems. They made the module available in their skills repository, detailing the installation process and the challenges they faced while dealing with screen capture issues. This approach ensures smooth and hassle-free sudo authentication using Touch ID, even in situations where the screen is being captured.",
  "summary": null,
  "summary_source": "publisher",
  "key_points": [
    "Users can replace password prompts with Touch ID for sudo authentication",
    "pamtid.so PAM module enables fingerprint verification on macOS",
    "Custom PAM module addresses screen capture limitations for fingerprint recognition"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}