#111097Sudo mode after user switch does not work, supposedly wrongly checks against password of impersonated user instead of original admin user
Description
I needed to reset a MFA provider on an editor user. I logged into my admin account, went to the BE users module, switched to the MFA-to-be-resetted-user with the switch button, went into his user settings, Account Security and was sudo-prompted for my password. So far so good, but: it did not work, my password was not accepted.
Then I switched back to my admin account, went somewhere where sudo is requested, entered my password, access granted, so I have an active sudo session. Then I switched to the editor user again, went to Account Security, and it worked. I could reset the MFA becasue I was in my own sudo mode.
I suspect when the first sudo modal is triggered after a user switch, it checks falsely against the switched-to user’s password, instead of the switched-from admin password.
Reviews 1
History 24
-
S P changed subject
Sudo mode after user switch does not work, supposedly wrongly checks against password of impersonated user instead of orignal admin userSudo mode after user switch does not work, supposedly wrongly checks against password of impersonated user instead of original admin user description <span data-processor="relativetime" data-value="2026-10-16T07:37:46+00:00" > 10/16/26, 07:37 </span> -
Gerrit Code Review pushed patch set 1 for main to change 96751 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-16T10:44:01+00:00" > 10/16/26, 10:44 </span> -
Gerrit Code Review pushed patch set 2 for main to change 96751 <span data-processor="relativetime" data-value="2026-10-16T10:45:22+00:00" > 10/16/26, 10:45 </span>