[SOLVED] gparted on XFCE not asking for password

Everything about X, Gnome, KDE, ... and everything running on it

[SOLVED] gparted on XFCE not asking for password

Postby themagicm » 2021-02-07 21:26

I'm running Deb testing on my HP Envy x360. Why? Well, I could not get the nvme drive recognized. I didnt want to fart around too much since my previous laptop was sold and needed to transfer my old stuff. In general everything works fine unless there is an application which requires authentication like Synaptic Package Manager or gparted. Neither ask for a password. I can sudo from the command line and it runs, just not sure how to fix it from the gui..

Anyone run into this before and have a fix? Thanks
Last edited by themagicm on 2021-02-08 18:24, edited 1 time in total.
themagicm
 
Posts: 48
Joined: 2011-11-23 06:08

Re: gparted on XFCE not asking for password

Postby CwF » 2021-02-07 23:39

themagicm wrote:Anyone run into this before and have a fix? Thanks

Yes, I have, yes I do!
Clues are in viewtopic.php?f=10&t=148806

XFCE isn't always including an user-agent, formerly gnomes I think now gone from bullseye, you need to finish it off depending on how you want it. You want a password dialog you need an agent.

Start by checking the menu for it's entry and run it on the command line and see...
CwF
 
Posts: 929
Joined: 2018-06-20 15:16

Re: gparted on XFCE not asking for password

Postby Head_on_a_Stick » 2021-02-08 10:07

Check for running polkit agents with
Code: Select all
pgrep -a polkit

As CwF says Xfce in buster uses polkit-gnome-authentication-agent-1 for the graphical password prompt so if that doesn't appear in the output of the above command then try installing the policykit-1-gnome package.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13280
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: gparted on XFCE not asking for password

Postby Bloom » 2021-02-08 14:39

Use pkexec instead of sudo:
Code: Select all
pkexec /usr/sbin/gparted &
User avatar
Bloom
 
Posts: 322
Joined: 2017-11-11 12:23

Re: gparted on XFCE not asking for password

Postby Head_on_a_Stick » 2021-02-08 14:40

The menu entries for gparted and synaptic already use pkexec.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13280
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: gparted on XFCE not asking for password

Postby themagicm » 2021-02-08 18:22

running journalctl --follow, then running gparted from the menu, I see:

/usr/libexec/gdm-x-session[10876]: Error executing command as another user: No authentication agent found.


I'll start looking to see what I can find...
themagicm
 
Posts: 48
Joined: 2011-11-23 06:08

Re: gparted on XFCE not asking for password

Postby themagicm » 2021-02-08 18:24

CwF wrote:
themagicm wrote:Anyone run into this before and have a fix? Thanks

Yes, I have, yes I do!
Clues are in viewtopic.php?f=10&t=148806

XFCE isn't always including an user-agent, formerly gnomes I think now gone from bullseye, you need to finish it off depending on how you want it. You want a password dialog you need an agent.

Start by checking the menu for it's entry and run it on the command line and see...



Yep..you were correct. I installed what "Head_on_a_stick" suggested, and its all working now!

Thanks to both of you.. appreciate it!!
themagicm
 
Posts: 48
Joined: 2011-11-23 06:08


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable