Skip to content

Instantly share code, notes, and snippets.

@priyeshsharma
Created August 19, 2021 16:19
Show Gist options
  • Select an option

  • Save priyeshsharma/c6f7dc4645933060bae815f51eaa2b77 to your computer and use it in GitHub Desktop.

Select an option

Save priyeshsharma/c6f7dc4645933060bae815f51eaa2b77 to your computer and use it in GitHub Desktop.

Revisions

  1. @vraravam vraravam created this gist Jul 22, 2021.
    9 changes: 9 additions & 0 deletions approve_fingerprint_sudo.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/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