You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example: I have a yubikey and fingerprint, both as auth sufficient in /etc/pam.d/system-auth. Setting it up with authselect enable-feature with-fingerprint with-pam-u2f I get the following config file no matter what order I specify it with:
So will it be plausible to make authselect control the order of the auth sufficient depending either on the order of enable-feature or a new function that can re-order them?
Hi, thank you for opening this issue. This is an interesting use case, it's not going to happen any time soon and I don't make any promise. But I will consider it for some future release.
Hi @pbrezina I have created PR which add an optional feature with-pam-u2f-priority to change order of pam_u2f module & keep it before pam_fprintd. For now, I just touched sssd profile keeping nis & winbind as it is (for testing purpose).
I tested it on RHEL 9.6 with authselect-1.2.6-3 & it worked well for me. Does it look good to you?
Hi, what happens if pam_u2f is before pam_frintd and the yubikey is not present? I assume the authentication will be waiting for a yubikey? I can't test it myself as I currently do not have yubikey nor fingerprint hardware.
Activity
[-]Control the order in pam[/-][+]Control the order of `auth sufficient` in `pam`[/+]pbrezina commentedon Oct 9, 2024
Hi, thank you for opening this issue. This is an interesting use case, it's not going to happen any time soon and I don't make any promise. But I will consider it for some future release.
austin2118ace commentedon May 19, 2026
Hi just wanted to ping this issue, is it still on the radar? I have the exact same issue :)
Ferenc- commentedon May 20, 2026
@pbrezina Just out of curiousity, would PRs fort his be accepted if someone works on it?
asakure commentedon May 31, 2026
Hi @pbrezina, Would it make sense to just change the default order in
system-authfile fromto:
Or shall we introduce an additional feature/option to make this change(if needed by admin)?
pbrezina commentedon Jun 2, 2026
Hi, I do not plan this. But I will accept PR with a switch.
asakure commentedon Jun 2, 2026
Thanks for the inputs. I will try to create a PR & submit for review soon.
LecrisUT commentedon Jun 2, 2026
#336 worth considering the stuff in there. Don't remember why it didn't go anywhere
asakure commentedon Jun 3, 2026
Hi @pbrezina I have created PR which add an optional feature
with-pam-u2f-priorityto change order of pam_u2f module & keep it before pam_fprintd. For now, I just touched sssd profile keeping nis & winbind as it is (for testing purpose).I tested it on RHEL 9.6 with
authselect-1.2.6-3& it worked well for me. Does it look good to you?Add feature to priortise pam_u2f over pam_fprintd
pbrezina commentedon Aug 12, 2026
Hi, what happens if pam_u2f is before pam_frintd and the yubikey is not present? I assume the authentication will be waiting for a yubikey? I can't test it myself as I currently do not have yubikey nor fingerprint hardware.
asakure commentedon Aug 13, 2026
Hi @pbrezina thank you for checking this. I will see feasibility to test this locally as I have one yubikey & share my observations with you.