"GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject" seen when executing systemctl command

Solution Verified - Updated -

Issue

  • When executing a systemctl command to administer a service, the following message is displayed

    Error 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 with hidepid=2 option

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content