Polkit not working over vnc

Kernels & Hardware, configuring network, installing services

Polkit not working over vnc

Postby Tom4010 » 2020-06-17 18:13

Hi Forum,

I'm running a Kubuntu 20.04 and connect to the machine (Intel Nuc) via vnc. Unfortunately, polkit is not working properly, e.g., I get this error when trying to start gedit:
Code: Select all
$ gparted
Error executing command as another user: No authentication agent found.

PS aux shows a policykit process:
Code: Select all
root         769  0.0  0.0 241784 10740 ?        Ssl  20:16   0:00 /usr/lib/policykit-1/polkitd --no-debug

pkexec gparted gives me this error after entering my password
Code: Select all
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized


I'm trying to debug this error for quite some time, but unfortunately still don't know what causes the problem. To my surprise, I could open gedit when attaching a monitor and logging in locally once... If helpful, here is also my xstartup for vnc
Code: Select all
#!/bin/sh
xrdb $HOME/.Xresources
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
dbus-launch startplasma-x11


Is anybody able to point me in the right direction?
Tom4010
 
Posts: 3
Joined: 2020-06-17 11:14

Re: Polkit not working over vnc

Postby CwF » 2020-06-17 18:37

On the machine executing 'gparted' check /usr/share/polkit-1/actions/com.ubuntu.pkexec.gparted.policy
Code: Select all
      <allow_inactive>policy</allow_inactive>

policy is the question, try 'yes'
CwF
 
Posts: 691
Joined: 2018-06-20 15:16

Re: Polkit not working over vnc

Postby Tom4010 » 2020-06-17 19:20

Thanks for the quick reply! But isn’t this just a work around for gparted? Mounting an external drive in a file manager also doesn’t work. Therefore, I was assuming there is an underlying issue with polkit that I should fix.
Tom4010
 
Posts: 3
Joined: 2020-06-17 11:14

Re: Polkit not working over vnc

Postby arochester » 2020-06-17 19:23

I'm running a Kubuntu 20.04


Kubuntu Forums? https://www.kubuntuforums.net/forum.php
arochester
 
Posts: 1681
Joined: 2010-12-07 19:55

Re: Polkit not working over vnc

Postby cuckooflew » 2020-06-17 19:32

Postby Tom4010 » 2020-06-17 18:13
Hi Forum,

I'm running a Kubuntu 20.04

Gee that's nice, and welcome to Debian User Forums
Maybe you should just wipe the HD and install Debian :idea: :idea: :idea: :mrgreen:
OR,
Is anybody able to point me in the right direction?

As suggested by arochester , go to the specific distro's forum or support, for support.
Please Read.. What we expect you have already Done.
Does any one know about this ?
Users browsing this forum: Google Knows, and
My grand father knows all about everything:
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 403
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Polkit not working over vnc

Postby Tom4010 » 2020-06-18 06:42

I thought the distros are one big family and such basic functionalities work similarly everywhere. But then I‘ll try my luck there.
Tom4010
 
Posts: 3
Joined: 2020-06-17 11:14


Return to System configuration

Who is online

Users browsing this forum: No registered users and 15 guests

fashionable