PDA

View Full Version : [xubuntu] No elevated permissions password prompts appearing



fallen-luciel
December 30th, 2019, 04:11 PM
Hi all,

This is an, almost fresh install of Xubuntu. The problem I'm having is, whenever I do something through the Gui that asks for my sudo password (install something, uninstall something, attempt to change a setting, etc) the prompt that normally should appear where I would write my password, doesn't. Meaning I literally can't do anything that requires elevated permissions on the gui, I need to go to the CLI to do it.

Example,
- Click on the menu button
- Click on software
- Click on Installed
- Click on any piece of software you no longer want.
- Click on Remove

Normal behaviour would be, you now get the password prompt. I don't, so clicking on Remove does nothing.

Thanks for any help or ideas in advance!

(PS: I've tried creating other users, in case it was an issue with the profile to no avail, same issue).

TheFu
December 30th, 2019, 04:32 PM
No clue if this matters or not, but is the problem userid in the adm or sudo groups?
id will let you check that.

fallen-luciel
December 30th, 2019, 04:46 PM
Hi TheFu,

It is

"uid=1000(username) gid=1000(username) groups=1000(username),4(adm),24(cdrom),27(sudo),30 (dip),46(plugdev),118(lpadmin),126(sambashare)"

sisco311
December 30th, 2019, 06:24 PM
What happens when you run pkexec from a terminal:

pkexec echo

fallen-luciel
December 30th, 2019, 06:29 PM
Hi Sisco311,


What happens when you run pkexec from a terminal:

pkexec echo

This:


==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/bin/echo' as the super user
Authenticating as: RSO Systems Administrator,,, (rso-sysadmin)
Password:

After the password is introduced:


polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Faile d: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized

This incident has been reported.

Running it with sudo, nothing happens aside from it asking for the password on the terminal.

sisco311
December 30th, 2019, 06:37 PM
Make sure that policykit-1-gnome is installed and PolicyKit Authentication Agent (/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1) is added to the startup applications.

fallen-luciel
January 2nd, 2020, 12:28 PM
Good morning,


Make sure that policykit-1-gnome is installed and PolicyKit Authentication Agent (/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1) is added to the startup applications.

policykit-1-gnome is installed and added to startup applications, still no joy unfortunately.

sisco311
January 3rd, 2020, 04:30 PM
Check if the auth agent and the daemon is running:

ps -ef | grep polkit

systemctl status polkit.service


If the agent is not running, try to start it manually an see if it produces any error message:

/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1