"GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject" seen when executing systemctl command
Issue
-
When executing a
systemctl
command to administer a service, the following message is displayedError registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)
-
The
systemctl
command executes successfully anyway
Environment
- Red Hat Enterprise Linux 7.8
- polkit-0.112-18.el7 and later
/proc
mounted withhidepid=2
option
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.