{"id":6402,"date":"2016-10-25T23:40:14","date_gmt":"2016-10-25T15:40:14","guid":{"rendered":"http:\/\/rmohan.com\/?p=6402"},"modified":"2016-10-25T23:40:14","modified_gmt":"2016-10-25T15:40:14","slug":"rhel7-message-error-calling-startservicebyname-for-org-freedesktop-policykit1-timeout-was-reached-is-coming-on-system-after-setting-the-hostname","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6402","title":{"rendered":"rhel7: Message &#8220;Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached&#8221; is coming on system after setting the hostname"},"content":{"rendered":"<p>hostnamectl set-hostname &lt;hostname&gt;<br \/>\nError getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)<br \/>\nAlso other commands fail:<\/p>\n<p>[root@rhel7u2a ~]# systemctl restart sshd<br \/>\nError getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Activation of org.freedesktop.PolicyKit1 timed out (g-dbus-error-quark, 20)<br \/>\n[root@rhel7u2a ~] #<br \/>\nResolution<br \/>\nThe permissions should be fixed:<\/p>\n<p>chmod 644 \/etc\/passwd<br \/>\nchmod 000 \/etc\/shadow<\/p>\n","protected":false},"excerpt":{"rendered":"<p>hostnamectl set-hostname &lt;hostname&gt; Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24) Also other commands fail:<\/p>\n<p>[root@rhel7u2a ~]# systemctl restart sshd Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Activation of org.freedesktop.PolicyKit1 timed out (g-dbus-error-quark, 20) [root@rhel7u2a ~] # Resolution The permissions should be [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6402"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6402"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6402\/revisions"}],"predecessor-version":[{"id":6403,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6402\/revisions\/6403"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}