Skip to content

Instantly share code, notes, and snippets.

@tomterragni
Created June 3, 2022 11:36
Show Gist options
  • Select an option

  • Save tomterragni/d586eeddae847cdebef10d781ff1a440 to your computer and use it in GitHub Desktop.

Select an option

Save tomterragni/d586eeddae847cdebef10d781ff1a440 to your computer and use it in GitHub Desktop.

Revisions

  1. tomterragni created this gist Jun 3, 2022.
    14 changes: 14 additions & 0 deletions sudo
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # This is the PAM sudo config file: /etc/pam.d/sudo
    # sudo: auth account password session

    ###############################################
    # add the following line to enable Touch ID authentication in e.g. unix scripts which use sudo,
    # as described in https://dev.to/equiman/how-to-use-macos-s-touch-id-on-terminal-5fhg
    auth sufficient pam_tid.so
    ###############################################

    auth sufficient pam_smartcard.so
    auth required pam_opendirectory.so
    account required pam_permit.so
    password required pam_deny.so
    session required pam_permit.so