{"id":842,"date":"2021-12-09T13:43:40","date_gmt":"2021-12-09T07:43:40","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=842"},"modified":"2022-10-31T15:30:55","modified_gmt":"2022-10-31T09:30:55","slug":"unable-to-register-authentication-agent-gdbus-errororg-freedesktop-policykit1-error-failed-cannot-determine-user-of-subject-cyberpanel-centos-7","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/unable-to-register-authentication-agent-gdbus-errororg-freedesktop-policykit1-error-failed-cannot-determine-user-of-subject-cyberpanel-centos-7.html","title":{"rendered":"Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject &#8211; Cyberpanel &#8211; CentOS 7"},"content":{"rendered":"\n<p><strong>Error details:<\/strong><\/p>\n\n\n\n<p>After installing cyberpanel, you see the below error from shell when running any command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">** (pkttyagent:8559): WARNING **: 02:28:34.621: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject\nError registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)<\/pre>\n\n\n\n<p><strong>Resolution:<\/strong><\/p>\n\n\n\n<p>The error is appearing because cybepranel adds the following line in your fstab:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">proc    \/proc        proc        defaults,hidepid=2    0 0<\/pre>\n\n\n\n<p>This is hiding the \/proc from your shell that uses polkit. To fix this, keeping the above mount rule, you need to add a group for polkitd user and assign that group to to access \/proc. You may do this using the following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">groupadd nohideproc\nusermod -a -G nohideproc polkitd\nmount -o remount,rw,hidepid=2,gid=nohideproc \/proc\nsystemctl restart polkit\nsystemctl restart polkit (do this twice)<\/pre>\n\n\n\n<p>Once done, you may edit your fstab, and comment the old line, add the following line:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Edit your fstab:\nnano \/etc\/fstab\n\n# comment the following line :\nfrom : proc    \/proc        proc        defaults,hidepid=2    0 0\nto : # proc    \/proc        proc        defaults,hidepid=2    0 0\n\n# add the following line\nproc \/proc proc defaults,hidepid=2,gid=nohidproc 0 0<\/pre>\n\n\n\n<p>Good luck.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error details: After installing cyberpanel, you see the below error from shell when running any command: Resolution: The error is appearing because cybepranel adds the following line in your fstab: This is hiding the \/proc from your shell that uses polkit. To fix this, keeping the above mount rule, you need to add a group &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/unable-to-register-authentication-agent-gdbus-errororg-freedesktop-policykit1-error-failed-cannot-determine-user-of-subject-cyberpanel-centos-7.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject &#8211; Cyberpanel &#8211; CentOS 7&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[295,12],"tags":[220,407,634,635],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/842"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=842"}],"version-history":[{"count":2,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/842\/revisions"}],"predecessor-version":[{"id":915,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/842\/revisions\/915"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}