LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Gparted not open as user and hdd not mount. Polkit-kde-agent problem? (https://www.linuxquestions.org/questions/linux-general-1/gparted-not-open-as-user-and-hdd-not-mount-polkit-kde-agent-problem-4175647642/)

Gugur 02-05-2019 03:23 AM

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.

ondoho 02-06-2019 01:29 PM

Quote:

Originally Posted by Gugur (Post 5957876)
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.

Gugur 02-07-2019 05:23 AM

Quote:

Originally Posted by ondoho (Post 5958692)
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.

ondoho 02-08-2019 12:17 PM

Quote:

Originally Posted by Gugur (Post 5958946)
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.

sevendogsbsd 02-08-2019 12:21 PM

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


All times are GMT -5. The time now is 07:55 PM.