LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-05-2019, 03:23 AM   #1
Gugur
Member
 
Registered: Apr 2017
Location: Spain
Distribution: Debian
Posts: 58

Rep: Reputation: 7
Gparted not open as user and hdd not mount. Polkit-kde-agent problem?


Hello, I am using Parabola OpenRC.

I installed and add service elogind
#pacman -Syu polkit-elogind
#rc-update add elogind default
#pacman -S plasma-desktop (Include polkit-kde-agent)

When open gparted in terminal:
Error executing command as another user: No authentication agent found.

But I had to do this to can poweroff, reboot... (I think Polkit-elogind not work properly)

# nano /etc/pam.d/system-login
--session optional pam_systemd.so
to
--session optional pam_elogind.so

How can check and solve Polkit-elogind Problems in OpenRC?

Thanks.

Pd: Hdd problem solved, making storage group and adding my user. Polkit and elogind problem persist.

Last edited by Gugur; 02-05-2019 at 06:39 AM. Reason: Add info
 
Old 02-06-2019, 01:29 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Gugur View Post
When open gparted in terminal:
Error executing command as another user: No authentication agent found.

But I had to do this to can poweroff, reboot... (I think Polkit-elogind not work properly)
i'm not sure i understand:
  • can you try
    Code:
    sudo gparted
    or
    Code:
    pkexec gparted
    ???
  • you don't need gparted to poweroff, so your last sentence makes no sense to me. are you saying you cannot poweroff at all?

if you have problems or errors, always provide full output please.
 
Old 02-07-2019, 05:23 AM   #3
Gugur
Member
 
Registered: Apr 2017
Location: Spain
Distribution: Debian
Posts: 58

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by ondoho View Post
i'm not sure i understand:
  • can you try
    Code:
    sudo gparted
    or
    Code:
    pkexec gparted
    ???
  • you don't need gparted to poweroff, so your last sentence makes no sense to me. are you saying you cannot poweroff at all?

if you have problems or errors, always provide full output please.

sudo gparted work perfectly, but not as user.

I've been investigating, and, I think the problem is that Polkit-kde-agent does not start.

I try to execute it manually in terminal, but output error is:

/usr/lib/polkit-kde-authentication-agent-1


New PolkitAgentListener 0x55fbb15fdca0
Adding new listener PolkitQt1::Agent::Listener(0x7f34780396c0) for 0x55fbb15fdca0
Listener online
"Cannot create unix session: No session for pid 2809"

** (process:2809): CRITICAL **: 12:20:33.145: polkit_agent_listener_register_with_options: assertion 'POLKIT_IS_SUBJECT (subject)' failed
"Cannot register authentication agent!"
Authentication agent result: false
Couldn't register listener!


I'm stuck here

Thanks.

Pd: Sorry bad title, when I changed polkit to polkit-elogind, I had to do manually changes to can shutdown, reboot, etc. As user.
Pd1: I am using sddm.
pd2: I used xfce4 with polkit-gnome, and it is work, gparted password prompt appears. But Kde Plasma not work for me.

Last edited by Gugur; 02-07-2019 at 05:57 AM.
 
Old 02-08-2019, 12:17 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Gugur View Post
sudo gparted work perfectly, but not as user.
sorry, but you lost me again.
anyhow...
Quote:
I've been investigating, and, I think the problem is that Polkit-kde-agent does not start.
I try to execute it manually in terminal, but output error is:
...
try one of these.
 
Old 02-08-2019, 12:21 PM   #5
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
You cannot run gparted as a user, it has to be run as root (sudo). I know of no other way to run it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fluxbox no polkit? gparted not working due to ??? BW-userx Slackware 26 02-01-2017 06:00 PM
LXer: Those Polkit/PolicyKit XML files a pain to view? Polkit Explorer now avaiable... LXer Syndicated Linux News 0 03-31-2013 03:42 PM
Polkit-kde-agent cmake problems f0rdracing Linux From Scratch 0 03-31-2013 03:45 AM
polkit-kde-authentication-agent-1 segfaults on Leave->Turn off computer jamesf Slackware 2 12-19-2010 01:54 PM
LXer: KDE extends Polkit support to polkit-1 LXer Syndicated Linux News 0 12-26-2009 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration