Skip to content

Add Touch ID as an authentication source for sudo on MacOS and persist across OS updates

Notifications You must be signed in to change notification settings

jbowring/auto-bio-sudo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Auto Bio Sudo

Add Touch ID as an authentication source for sudo authentication on macOS and persist across OS updates.

Adding tid_enable to /etc/pam.d/sudo allows Touch ID to be used to authenticate sudo commands on macOS, but this change is reset after every OS update. This tweak to your zsh profile will automatically re-add Touch ID functionality after an update:

Screenshot 2022-09-25 at 14 44 28

Install

Manually add the contents of .zshrc to the .zshrc file in your user profile, or execute the following command in Terminal:

(echo && curl https://raw.githubusercontent.com/jbowring/auto-bio-sudo/main/.zshrc) >> ~/.zshrc

About

Add Touch ID as an authentication source for sudo on MacOS and persist across OS updates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages