167

When attempting to launch system-config-users from command line, I get the following warning, and the tool does not open. I'm using CentOS 7 with Mate 1.8.1.

WARNING **: Error enumerating actions: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files

Error checking for authorization org.freedesktop.policykit.exec: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files

yum list polkit*

Installed Packages
polkit.x86_64   0.112-5.el7 @anaconda
polkit-devel.x86_64 0.112-5.el7 @base    
polkit-docs.noarch 0.112-5.el7 @base    
polkit-gnome.x86_64 0.105-6.el7 @epel    
polkit-pkla-compat.x86_64 0.1-4.el7  @anaconda

What is missing from my system to cause this error?

a coder
  • 3,253

3 Answers3

271

I just had the same return when installing deluged on arch, I typed:

 systemctl start deluged

I tried with sudo and it worked fine. Seems to be a group permissions issue.

All I did was enable permissions for my user account and then typed:

 sudo systemctl start deluged

worked like a charm.

Rui F Ribeiro
  • 56,709
  • 26
  • 150
  • 232
SNP22
  • 2,726
138

To clarify and summarize SNP22's post: You probably just forgot sudo.:

sudo systemctl [...]

Absolutely misleading warning ...

Suuuehgi
  • 1,753
  • 2
    Probably join the list of bad error message reports https://github.com/systemd/systemd/labels/needs-better-log-message but I need to test it with the latest version first... – Ben Creasy Oct 05 '17 at 07:27
  • 1
    THIS!! when you try to do a systemctl daemon-reload without root, it will report a weird error like this. Just check if it is missing the sudo or executing in the correct user or you enabled the root execution (in ansible the become: true) – higuita Feb 23 '18 at 19:46
1

This has been reported in this issue and fixed in this commit, which was released in systemd v244.

...but unfortunately this change will never go back to Centos 7's systemd v219.