Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pkexec authentication issue
#1
From my post in Ask Ubuntu here: https://askubuntu.com/questions/1186403/...ordwhich-i

Because they decided to ditch gksu for some reason, we are forced to only use pkexec. I am currently very new to Ubuntu 18.04 and I am facing this as an issue probably also because of my incompetence.

I followed the suggestion provided by Radu here https://askubuntu.com/questions/2878...nfigure-pkexec however I am having issues. In my situation, I get the following error

    Authentication is required to run gedit
    Authenticating as: meat258,,, (meat258)
    Password:
    polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Errorrg.freedesktop.PolicyKit1.Error.Failed: No session for cookie
    ==== AUTHENTICATION FAILED ===
    Error executing command as another user: Not authorized

This incident has been reported.


Despite I know that my root password is correct. Assuming I am new, any help would be appreciated.

`/etc/lsb-release` in my system lists,

    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=18.04
    DISTRIB_CODENAME=bionic
    DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"

And the fact that this is Ubuntu Mate. If you need to know any more info, I would happily provide. Please assume I am a novice user.

Actually, the actual command I used was

pkexec gedit

Its true that gedit isn't installed by default on Ubuntu Mate so I installed it wilt sudo apt install gedit. Besides, its such a lightweight program and an example used in that other Ask Ubuntu post. Its an unfortunate only I got this issue.
Reply
#2
out of curiosity try running pkexec gedit as root (not sudo)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)