Created
August 19, 2021 16:19
-
-
Save priyeshsharma/c6f7dc4645933060bae815f51eaa2b77 to your computer and use it in GitHub Desktop.
This script is used to setup the command-line sudo requests to fire up the fingerprint authentication on MBPs which have this feature. This file can be put anywhere in the path.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # To be able to use the mac touchbar for sudo command auth: | |
| # edit the following file: /etc/pam.d/sudo | |
| # and add the following line after the initial comment line: | |
| # `auth sufficient pam_tid.so` | |
| sudo sed -i '' '2i\ | |
| auth sufficient pam_tid.so\ | |
| ' /etc/pam.d/sudo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment