Open the file sudo nvim /etc/pam.d/sudo You can’t write to this file without sudo permissions. Add this line to the top of the file auth sufficient pam_tid.so Creds