How to fix GDBus.Error:org.freedesktop.PolicyKit1

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)

Solution:

First of all, run the command lines:

groupadd -g 23 nohidproc
usermod -a -G nohidproc polkitd
mount -o remount,rw,hidepid=2,gid=nohidproc /proc
systemctl restart polkit

Add the following in /etc/fstab as well:

echo "proc /proc proc defaults,hidepid=2,gid=nohidproc 0 0" >> /etc/fstab

After mounting the new mountpoint and restarting the service:

mount -a
systemctl restart polkit

This should be solved!

  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix installation issue of Virtualizor

In this tutorial, we are going to explain to you how to fix a problem with virtualizor on some...

How to Install SolusVM Master on CentOS 7.x?

SolusVM is a popular VPS hosting control panel and SolusVM master is used for controlling Slave...

Install Froxlor Server Management Panel 0.10.15

You can download shell installer which downloads the tarball, extracts it and sets up the basics....

Force Main IP Remote Detection (SolusVM)

If you have multiple IPs assigned to your KVM VPS and remote connections are only seeing your...

Disable IPv6 on CentOS 6/7/8 server - SolusVM

If you use some servers that have SolusVM that support IPv6 and get the problem could not send...