U2f does not work with sudo

Hello, greetings to the community.
I have some Fido2 keys that I use to login to sddm, and to use sudo in the terminal.
Well it only works with su - $(whoami) and sddm.
I think it must be some pam.d configuration file, in my old distribution it works fine, I have also tried it in other distributions and it works fine, but in suse pam is different.

I have the common-auth file like this:

auth required pam_env.so
auth optional pam_kwallet5.so
auth sufficient pam_u2f.so authfile=/etc/Yubico/u2f_keys cue userverification=1
auth required pam_unix.so try_first_pass

Hello, I solved it, I did not remember that the user has no root privileges.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.