https://davidwalsh.name/touch-sudo * Home * Main Content DWB * Home * Tutorials * Features * Demos * Topics * The Blog * Recent Tutorials + Use Touch ID for sudo on Mac + How to Install a NPM Module from GitHub Branch + How to Push to a Git Remote Branch of a Different Name + Fix "no such file or directory, scandir" + Confessions of a Web Developer XVIII * Recent Features + 39 Shirts - Leaving Mozilla + Tips for Starting with Bitcoin and Cryptocurrencies + Interview with a Pornhub Web Developer + Welcome to My New Office + How to Create a RetroPie on Raspberry Pi - Graphical Guide * Interactive Demos + Chris Coyier's Favorite CodePen Demos IV + prefers-color-scheme: CSS Media Query + CSS Ellipsis Beginning of String + Vertically Centering with Flexbox + Creating Spacers with Flexbox * Popular Topics + HTML5 + CSS Animations + Firefox OS + jQuery + MooTools + PHP + CSS3 + WordPress + Mobile + SEO + JavaScript + Dojo Toolkit * David Walsh Blog + About David Walsh + Contact and Advertise + Developer Deals + Mozilla * * * * * * Search[ ] Popular: * JavaScript Promises * fetch API * React.js * Cache API * ES6 Features * Node.js * JavaScript * jQuery Use Touch ID for sudo on Mac Building Resilient Systems on AWS: Learn how to design and implement a resilient, highly available, fault-tolerant infrastructure on AWS. Use Touch ID for sudo on Mac By David Walsh on March 1, 2021 * 4 * * * * The landscape of security is changing quite a bit. We've gone from basic username and password to 2FA, facial recognition, fingerprint recognition, and so on. Hell, my Mac unlocks simply when I have my Apple Watch near by. In the end, I probably use the Mac fingerprint key the most. One functionality that still requires manually typing a password is using sudo from command line. Did you know, however, that you can instead require the fingerprint key instead of typing out your password? # Open the sudo utility sudo vi /etc/pam.d/sudo # Add the following as the first line auth sufficient pam_tid.so Whether or not you'd prefer to type it out or simply use the fingerprint is obviously personal preference. Since you expect to be be typing in a command line, moving your finger to touch the key is probably not very efficient. If you do want to use fingerprint, however, here you go! Website performance monitoring Website performance monitoring Website performance monitoring Website performance monitoring Recent Features * By Julian ShapiroApril 28, 2014 CSS vs. JS Animation: Which is Faster? How is it possible that JavaScript-based animation has secretly always been as fast -- or faster -- than CSS transitions? And, how is it possible that Adobe and Google consistently release media-rich mobile sites that rival the performance of native apps? This article serves as a point-by-point... * By David WalshOctober 7, 2019 Interview with a Pornhub Web Developer Regardless of your stance on pornography, it would be impossible to deny the massive impact the adult website industry has had on pushing the web forward. From pushing the browser's video limits to pushing ads through WebSocket so ad blockers don't detect them, you have... Incredible Demos * By David WalshApril 15, 2008 Dynamically Load Stylesheets Using MooTools 1.2 Theming has become a big part of the Web 2.0 revolution. Luckily, so too has a higher regard for semantics and CSS standards. If you build your pages using good XHTML code, changing a CSS file can make your website look completely different. * By David WalshAugust 21, 2007 Advanced CSS Printing - Using JavaScript Double-Click To Remove Unwanted DIVs Like any good programmer, I'm constantly searching around the internet for ideas and articles that can help me improve my code. There are thousands of talented programmers out there so I stumble upon some great articles and code snippets that I like to print out... Discussion 1. Luka First you need to make the file writable (it is not by default). And you need to do this after every macOS update, because macOS updates reset the file content. 2. Yohann Paris Nice trick. Unfortunately, on Big Sur, at least, it pops up the touch id alert to use it only when the session is terminated, so it's not useful. 3. Mehdi Abbassi But it is read-only! 4. Robert Coggeshall As the co-author of sudo, I am amused :) Name:[ ]Email:[ ]Website: [ ] Wrap your code in
tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed! [ ] [ ] Continue this conversation via emailGet only replies to your comment, the best of the rest, as well as a daily recap of all comments on this post. No more than a few emails daily, which you can reply to/unsubscribe from directly from your inbox.[Post Comment!]Use Code Editor * * * * * * (c) David Walsh 2007-2021. All code MIT license.Hosting by Media Temple .