Skip to content

Instantly share code, notes, and snippets.

@gquittet
Created October 27, 2026 20:54
Show Gist options
  • Select an option

  • Save gquittet/1f9d21853fa0eec6b022f1bcb07079d8 to your computer and use it in GitHub Desktop.

Select an option

Save gquittet/1f9d21853fa0eec6b022f1bcb07079d8 to your computer and use it in GitHub Desktop.

Ghostty TouchId

  1. Copy Touch-ID template config into PAM settings directory:
sudo cp /etc/pam.d/sudo_local.template /etc/pam.d/sudo_local
  1. Edit this config using nano (or you preferred editor):
sudo nano /etc/pam.d/sudo_local
  1. Uncomment only one config line: before: # auth sufficient pam_tid.so after, should be without #: auth sufficient pam_tid.so

Then save it.

  1. Turn OFF macos-auto-secure-input feature in your config or click on Ghostty icon in menu -> and uncheck the box Secure Keyboard Entry.

  2. Reload Ghostty app and enjoy it! You can test via sudo echo "123!"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment