0

So I'm running into another strange issue on CentOS 7.

I have vncserver installed as a systemd service, running as my normal non-privileged user.

There are a couple processes that don't prompt me for the root password as they should: yumex and "Disk Management".

When I open Disk Management, instead of getting a password prompt, I just see "There are no filesystems which are allowed to mount or unmount. Contact your administrator."

When I run yumex, I get: Fatal error: polkit-not-autherized (yes, it says autherized, spelled wrong...) "Could not get polkit autherisation to start backend Yum Extender will terminate"

I've done some research on this issue, and the only solution is to run: su -c 'yumex --root' And then put the root password in there. But I hate having to type that every time I want to run it. It's supposed to prompt.

I can confirm this is ONLY a problem when using VNC. If I use the local console, both of those programs do ask me for the root password and work correctly.

What is strange about this is that most other programs do work correctly. GParted asks for root password, among other things. It's just these particular ones.

Any ideas how to fix this? I'm using MATE rather than GNOME3, for what it's worth.

2
  • It is probably related to ConsoleKit / PolicyKit enabling interactive password authentication on physical console only. Both packages can be quite complex to configure, but give a look on freedesktop.org
    – shodanshok
    Aug 22, 2016 at 20:15
  • What exactly would I be looking for? Aug 22, 2016 at 21:30

1 Answer 1

0

This is because yumex enforces that polkit interactive password authentication can only be done at physical consoles and not remotely:

https://github.com/timlau/yumex/blob/3a0f2830e42d43a83d2dc803cc2c3c119dfa1687/misc/dk.yumex.backend.policy.in#L15

Documentation on polkit actions:

https://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html

To change the default behavior and enable running yumex authorized by polkit from a VNC session edit

/usr/share/polkit-1/actions/dk.yumex.backend.policy

and change

<allow_any>no</allow_any>

to

<allow_any>auth_admin</allow_any>

It should take effect immediately.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .