I was recently trying to set up Yubikey with macOS, and somewhere along the lines, something went wrong. Whenever I use sudo, I get sudo: unable to initialize PAM: No such file or directory.

I have no idea where I messed up, and after looking for about a week for an answer, at this point I might as well reset my PAM files. I could not find a solution that works.

Using pam-auth-update gets zsh: command not found: pam-auth-update.

Any help would be appreciated. Thanks!

  • pam-auth-update is a tool that was developed by Canonical, so it is present in Debian, Ubuntu and related distributions, but is not guaranteed to be available anywhere else. If you have backups of your macOS (Time Machine or anything), can you just restore the un-edited PAM files from backup? According to a red warning at the top of Yubikey's installation instructions for macOS, there is currently a known issue with the compatibility of Yubikey in macOS 10.15 Catalina: github.com/Yubico/yubico-pam/issues/201 – telcoM Apr 3 at 7:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.