Sudo bash -eu /dev/null "$file" "$backup" 2>/dev/null || touch "$file" "$backup"Īwk -v is_done='pam_tid' -v rule='auth sufficient pam_tid. # This script adds a single line to the top of the PAM configuration for sudo # Use TouchID for sudo on modern MacBook Pro machines # This script is ready to copy-paste in whole, or just the line above (without the leading #) It does it in a single script that you can copy-paste to a terminal in it's entirety or use the " curl pipe bash" shortcut: I have created a simple script that enables sudo to use the TouchID PAM module exactly as conorgriffin explains. If TouchID stops working for sudo then check if the entry was removed and add it back in, following these instructions again. Recent MacOS updates may remove the entry. See answer by user Pierz below if you're using iTerm, as there's a setting you need to explicitly change to enable this feature. If you SSH into your machine it will fall back to just use your password, since you can't send your TouchID fingerprints over SSH. If you click 'Use Password' you can enter your password in the dialog box. If you click 'Cancel,' you can just enter your password at the terminal prompt. Try to use sudo, and you should be prompted to authenticate with TouchID as shown below. vim will require you to use wq! when saving)Īlso note that pam_smartcard.so may not be present on older MacOS versions.Įxit from the root user or start a new terminal session. ( Note: this file is normally read-only so saving your changes may require you to force the save, e.g. You need to add an additional auth line to the top so it now looks like this: # sudo: auth account password session The contents of this file should look like one of the following examples: UWP: The app does not use any own telemetry functions apart from the standardised telemetry functions by Microsoft (crashes, install from which country, versions in use, custom events etc.).To allow TouchID on your Mac to authenticate you for sudo access instead of a password you need to do the following.Įdit the /etc/pam.d/sudo file with a command-line editor such as vim or nano See LICENSE for more information.Ī list of all used 3rd party libraries, images and information with their source and license can be found in the Dependencies of the app section in every installation.Ĭurrent key-icon-logo by freepik flaticon. Perform two factor authentication in an ASP.NET core application using Google Authenticator app. This is an open source project! Every contribution is greatly appreciated! Licenseĭistributed under the GNU GPLv3 License. More than 100 million people use GitHub to discover. 圆4 and UWP for the Universal Windows Applicationįeel free to fork the project, work in your personal branch and create a pull request or you simple interact in the issue section.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |