Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot

I just installed dvWA range environment. After debugging, I executed the SystemCTL Restart PHP-FPM command as root user, and then reported this error:

[root@localhost ~]# systemctl restart php-fpm
** (pkttyagent:10946): WARNING **: 17:09:31.957: 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)

Refer to such a document, found that was caused by x permissions lost, reference document links: https://blog.csdn.net/huangjin0507/article/details/51536454
The following command is used:

[root@localhost ~]# chmod 755 /

With the changes, the problem disappeared, PHP was rebooted, and DVWA was successfully accessed.


Read More: