Tuesday, 9th November 2021
![](https://www.awaludin.net/wp-content/uploads/2020/09/thumb.jpg)
How to fix: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed Centos 7
On centos 7, there are instances where you get the error Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)
This usually happens when trying to restart a systemd service.
The workaround is as follows:
groupadd… Continue reading…