-
Notifications
You must be signed in to change notification settings - Fork 119
No polkit authentication agent found since 9.0.0 #105
Comments
Thanks @feileacan for the detailed report. Please would you try rebooting your system and then running the test script for 9.0.0 before doing anything else? |
This might have something to do with these issues: https://gitlab.gnome.org/GNOME/gnome-shell/issues/417#note_541769 In addition to rebooting and running the test script (Option 1 above), please would you also try the following: Option 2:
Option 3:
Option 4:
|
Option 1: Same issue
The account has no password:
The account is locked by default, but I see the same error for unlocked: If I set a password I get a different error:
Option 3:
Option 4:
There's no graphical agent installed so pkexec failing when using --disable-internal-agent is expected, but not sure what changed between 8.2.0 and 9.0.0 that it's no longer able to auth. |
Thanks @feileacan, option 2 is almost exactly what 8.2.0 does, except that 8.2.0 first tries to execute the command with
Also, given that "passwordless sudo is enabled for all users" as you say, pkexec shouldn't be failing for you like it did in option 2 with I think then that this commit is what caused the issue in pkexec with passwordless sudo environments to be exposed: 8c1a302 It's not a bug in sudo-prompt, but an interaction between passwordless sudo being allowed and pkexec. I will see how we can workaround this. The change in 8c1a302 was necessary to fix a serious idempotency issue. |
You might want to take this up in the Chromium issue. This should never fail for a valid password:
|
Ah, not running via sudo would do it. As far as I can tell policykit uses its own rules so pkexec doesn't care whether the user has sudo access or not, it still requires auth: https://gitlab.freedesktop.org/polkit/polkit/blob/master/actions/org.freedesktop.policykit.policy.in#L13 Adding a rule for policykit.exec means users are no longer prompted which gets things working again. As regards the pkexec "No session for cookie" issue, looks like the same problem discussed in NixOS/nixpkgs#18012, using a separate pkttyagent works. Thanks for the info and investigation. |
Thanks @feileacan for reporting the issue. Just to double-check, would you mind giving me the output of running:
|
|
Thanks, that confirms that the issue is in pkexec and that |
Sorry for the delay with this, I will get to it in a few weeks. I know how to solve it and we have a few other changes that have built up which can all go hand-in-hand. |
sudo-prompt exec fails with "no polkit authentication agent found" on 9.0.0 but succeeds on 8.2.0.
Steps to Reproduce:
Output of each command:
9.0.0
8.2.0
This is occurring on a Chromebook but you may be able to repro on any Debian container with the same packages. Installed packages. Passwordless sudo is enabled for all users.
See https://bugs.chromium.org/p/chromium/issues/detail?id=995175 for some more context, exact Chrome OS version and platform, and other details.
The text was updated successfully, but these errors were encountered: