- Create a file named
sudo
with the following content:
# sudo: auth account password session
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
-
Use Finder to copy the
sudo
file to/etc/pam.d/
, replacing the misconfigured one. -
If that does not work, reboot the system while holding
⌘+R
. This will give you access to a recovery terminal with enough privileges to resolve the issue.