Open your sudo
file:
sudo vi /etc/pam.d/sudo
Add the following after the first line:
auth sufficient pam_tid.so
In iTerm, go to the Advanced section in Preferences and set Allow sessions to survive logging out and back in to No.
Open your sudo
file:
sudo vi /etc/pam.d/sudo
Add the following after the first line:
auth sufficient pam_tid.so
In iTerm, go to the Advanced section in Preferences and set Allow sessions to survive logging out and back in to No.