Here's a tip from Cabel Sasser of Panic for those of you out there with Touch Bar MacBook Pros who use Terminal and the "sudo" command frequently.
Here's the full step-by-step, for those who want to experiment. That said: sudo is an incredibly powerful command in the Terminal; we don't recommend messing around with this trick if you don't feel comfortable working in the Terminal app and changing system preference files.
Want to learn Terminal? Here are 15 commands we think every user should know.
Also worth noting, via Sasser:
How to enable Touch ID for sudo commands on your MacBook Pro with Touch Bar
In Safari, paste the following into the search bar: file:///etc/pam.d/sudo.
Alternatively, you can edit the file within the Terminal app itself using command-line text editors like emacs or nano; if you choose to do this, go to step 8, and skip steps 10-12.
Press Command-I with the sudo file highlighted to open up the information screen.
- Click on the Lock icon in the bottom right corner.
- Enter your authentication information (or use Touch ID).
Change the privileges of all users to Read & Write.
- Download TextWrangler, a free plain text editor, or use the plain text editor of your choice.
- Open the sudo file in TextWrangler (or equivalent).
Paste auth sufficient pam_tid.so on line 2 of the document (underneath the initial comment line)
Note: If you get a note about the document being locked, go back to step 2-5 and make sure you've enabled Read & Write privileges on the document.
Save the sudo file and close it.
- In Finder, press Command-I with the sudo file highlighted to open up the information screen.
- Change the privileges on all users to Read only.
- Click on the Lock icon in the bottom right corner.
Now, when you open Terminal and attempt a sudo command, you should be prompted with a Touch ID authentication in lieu of entering your administrator password.
Questions?
Let us know below.
We may earn a commission for purchases using our links. Learn more.

Apple still can't keep up with iPhone 12 Pro demand
Morgan Stanley's Katy Huberty says that Apple has slashed 2M iPhone 12 mini units so it can try to keep up with iPhone 12 Pro demand.

Linux now 'completely usable' on M1 Mac mini
Corellium's Chris Wade says Linux is now "completely usable" on the M1 Mac mini when booting from a USB stick.

Apple could announce first-ever $100B quarter at January earnings call
Multiple reports note that Apple could announce its first-ever quarter with $100 billion sales.

Get your clickity clack on with the best mechanical keyboards for Mac!
Apple's Magic Keyboard is great for a lot of people, but some folks like to feel and hear every keystroke, which is why mechanical keyboards will always maintain some popularity.