Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] gparted on XFCE not asking for password

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
themagicm
Posts: 49
Joined: 2011-11-23 06:08

[SOLVED] gparted on XFCE not asking for password

#1 Post by themagicm »

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.

CwF
Global Moderator
Global Moderator
Posts: 2637
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: gparted on XFCE not asking for password

#2 Post by CwF »

themagicm wrote:Anyone run into this before and have a fix? Thanks
Yes, I have, yes I do!
Clues are in http://forums.debian.net/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...

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: gparted on XFCE not asking for password

#3 Post by Head_on_a_Stick »

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.
deadbang

User avatar
Bloom
df -h | grep > 90TiB
df -h | grep > 90TiB
Posts: 504
Joined: 2017-11-11 12:23
Been thanked: 26 times

Re: gparted on XFCE not asking for password

#4 Post by Bloom »

Use pkexec instead of sudo:

Code: Select all

pkexec /usr/sbin/gparted &

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: gparted on XFCE not asking for password

#5 Post by Head_on_a_Stick »

The menu entries for gparted and synaptic already use pkexec.
deadbang

themagicm
Posts: 49
Joined: 2011-11-23 06:08

Re: gparted on XFCE not asking for password

#6 Post by themagicm »

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: 49
Joined: 2011-11-23 06:08

Re: gparted on XFCE not asking for password

#7 Post by themagicm »

CwF wrote:
themagicm wrote:Anyone run into this before and have a fix? Thanks
Yes, I have, yes I do!
Clues are in http://forums.debian.net/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!!

Post Reply