Skip to content

Instantly share code, notes, and snippets.

@kennwhite
Last active May 16, 2023 11:37
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennwhite/6f1f757903582127fd158a0903f8967a to your computer and use it in GitHub Desktop.
Save kennwhite/6f1f757903582127fd158a0903f8967a to your computer and use it in GitHub Desktop.
How to run a macOS app as admin using TouchID/password dialog box.

(This isn't specific to Wireshark)

sudo vi /etc/pam.d/sudo

Add to the end BEGINNING of the file:

auth sufficient pam_tid.so

Test with a trivial sudo command, and you should get a TouchID prompt:

sudo ls

# Open this scpt file in Script Editor (Utilities in Applications), export as App, drag to Applications, drag to Dock.
# If you want to get fancy and set a nice icon: https://stackoverflow.com/a/42817101
do shell script "sudo /Applications/Wireshark.app/Contents/MacOS/Wireshark &"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment