- Open the Terminal app on your Mac
- Use the nano editor, or the one you like most, to edit the /etc/pam.d/sudofile:
sudo nano /etc/pam.d/sudo
- Now add the following line right after the first one, so that it will appear as the second line in the file:
auth sufficient pam_tid.so
- Now save the file with CTRL+X and Y.