-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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! |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
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.) |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
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. |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
also fix my problem, but on gentoo the polkit agent is |
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 comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
Is it somehow possible to use this via |
It should be possible, but let's try adding a package option to the polkit module #322194 |
This seems to be resolved in the current development branch of polkit polkit-org/polkit#423 though that is not contained in any release yet. |
|
I had to hide a bunch of duplicate and off-topic comments. Please keep in mind that this is the NixOS/Nixpkgs issue tracker rather than a general Linux forum and that you can silently express your gratitude for workarounds using reactions. |
Issue description
Running
pkexec pwd
gives you:I don't have a graphical polkit agent running, so
pkexec
should fallback ontopkttyagent
. However it doesn't seem to work in this case.Note that to make it work, I have to run
pkttyagent
in 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 thepkttyagent
should just work on the original terminal when called bypkexec
.The text was updated successfully, but these errors were encountered: