New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running pkexec without a graphical agent fails even with falling back onto pkttyagent - polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie #18012
Comments
|
I'm trying to run hdajackretask to get the internal audio working on my system and before I downgraded back to 17.03 I couldn't even get it to run, now that it's running when I try to apply a configuration and type my password root or otherwise I'm getting this error. Can you explain a bit more how to fix? |
|
Thanks for tip @CMCDragonkai, saved me some investigation time. @erlandsona It's probably too late but what he means is you should open two terminals.
In the second terminal run
In the first terminal, do whatever you need to do with pkexec. |
|
saved me right there! just in case: if you need to do this over ssh just open 2 connections in two terminals and run @EstalillaJ code! |
|
Any news on this? |
|
@concatime see @EstalillaJ's comment that's what worked for me. Hence all the 👍 's. |
|
I would rather call his solution a hack until it really get solved ;) |
|
Yeah, i'm still having the same problem. If there is a fix, i'd be happy to know. |
|
This only solution saved me |
|
@EstalillaJ You've just saved my job. I'm grateful |
|
yep same bug. Using Ubuntu 18 LTS and pkexec 0.105 |
|
Is this related with bugs.debian.org/cgi-bin/bugreport.cgi?bug=841878? I use Ubuntu 18.04 with Mate and running Perhaps there is a permanent solution for my account? (Besides adding above polkit command to startup programms.) |
|
@EstalillaJ Saved my day |
|
@EstalillaJ Thank you very much! |
|
@EstalillaJ Hit me up next time you're near Seattle / Lynnwood. I owe you a beer. In my case, it was an Ubuntu 18.04 VPS, after I borked a file under /etc/sudoers.d/. (Nothing to do with NixOS.) |
|
Life saver |
|
Amazing, you save my life. |
|
@EstalillaJ you save me! |
|
It seems that this is due to the authentication agent not running. I am on Ubuntu, but maybe this will help in solving this problem: I had to install policykit-1-gnome: And then run it (same terminal using &, other terminal, or adding it to autostart all worked): After that pkexec worked as expected. |
|
Yup, saved my bacon. |
|
save my life... |
also fix my problem, but on gentoo the polkit agent is |
With You can manually execute |
|
This seems to have an upstream ticket https://gitlab.freedesktop.org/polkit/polkit/-/issues/17 but no significant activity or progress seems to have been made there recently |
|
Running ubuntu 20.04 LTS headless on rpi4 aarch64, attempting to use Trying to run it manually with Why is it trying to connect to a display, without ever actually being connected to one? |
Life saver! |
|
patching polkit with https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/59 works |
as seen in this issue this seems to be a common issue NixOS#18012
|
found more info in the thread of the patch that introduced this bug https://bugs.freedesktop.org/show_bug.cgi?id=90837#c20 |
|
Seems like there is an open merge request solving it but no more activity. |
Thanks @Artturin (^)! |
|
This issue is still saving our lives and jobs. |
Issue description
Running
pkexec pwdgives you:I don't have a graphical polkit agent running, so
pkexecshould fallback ontopkttyagent. However it doesn't seem to work in this case.Note that to make it work, I have to run
pkttyagentin a different terminal binding to the PID of the first terminal that is runningpkexec pwd, and that terminal will show the same workflow but will have succeeded at authentication. But this shouldn't be necessary as thepkttyagentshould just work on the original terminal when called bypkexec.The text was updated successfully, but these errors were encountered: