Remote users cannot execute "hostnamectl/systemctl/timedatectl" commands

Solution Verified - Updated -

Issue

  • On RHEL7, trying to run systemd related commands as a remote user, the commands fail, as shown in the examples below

    $ hostnamectl
    --> no output
    
    $ systemctl 
    Failed to list units: Operation not permitted
    
    $ timedatectl
    Failed to query server: Operation not permitted
    
  • On RHEL8 and later, trying to run systemd related commands as a remote user, the commands fail, as shown in the examples below

    $ hostnamectl
    Failed to query system properties: Transport endpoint is not connected
    
    $ systemctl 
    Failed to list units: Transport endpoint is not connected
    
    $ timedatectl
    Failed to query server: Transport endpoint is not connected
    

Environment

  • Red Hat Enterprise Linux 7 and later
    • DBus services

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