Skip to content

Commit

Permalink
Activates Touch ID for sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Oct 7, 2023
1 parent 283bee4 commit 9964b33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions macos-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ sudo perl -p -i -e 's|flags:lo,aa|flags:lo,aa,ad,fd,fm,-all,^-fa,^-fc,^-cl|g' /p
sudo perl -p -i -e 's|filesz:2M|filesz:10M|g' /private/etc/security/audit_control
sudo perl -p -i -e 's|expire-after:10M|expire-after: 30d |g' /private/etc/security/audit_control

# Activates Touch ID for sudo and make it persistent.
# See: https://sixcolors.com/post/2023/08/in-macos-sonoma-touch-id-for-sudo-can-survive-updates/
sudo cp /etc/pam.d/sudo_local.template /etc/pam.d/sudo_local
sudo sed -i "s/#auth/auth/" /etc/pam.d/sudo_local

##############################################################################
# 1Password #
Expand Down

0 comments on commit 9964b33

Please sign in to comment.