{"id":13,"date":"2024-12-13T13:02:56","date_gmt":"2024-12-13T13:02:56","guid":{"rendered":"https:\/\/paessens.org\/blog\/?p=13"},"modified":"2026-01-21T08:45:04","modified_gmt":"2026-01-21T07:45:04","slug":"allow-root-access-to-cockpit","status":"publish","type":"post","link":"https:\/\/paessens.org\/blog\/index.php\/2024\/12\/13\/allow-root-access-to-cockpit\/","title":{"rendered":"Allow root access to Cockpit"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">By default you can not log in to Cockpit by root user.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can fix this issue by editing the <strong>\/etc\/cockpit\/disallowed-users<\/strong> file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo vi \/etc\/cockpit\/disallowed-users<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Remove the root entry. (if needed add\/remove other users if applicable).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Restart Cockpit service:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo systemctl restart cockpit.socket<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now you can access Cockpit as user root as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default you can not log in to Cockpit by root user. You can fix this issue by editing the \/etc\/cockpit\/disallowed-users file. Remove the root entry. (if needed add\/remove other users if applicable). Restart Cockpit service: Now you can access<\/p>\n<p><a href=\"https:\/\/paessens.org\/blog\/index.php\/2024\/12\/13\/allow-root-access-to-cockpit\/\" class=\"awp-btn awp-btn-secondary awp-btn-bubble\">Continue Reading<span class=\"screen-reader-text\">Allow root access to Cockpit<\/span><i class=\"fa fa-arrow-right\"><\/i><span class=\"bubble_effect\"><span class=\"circle top-left\"><\/span><span class=\"circle top-left\"><\/span><span class=\"circle top-left\"><\/span>\t<span class=\"button effect-button\"><\/span><span class=\"circle bottom-right\"><\/span>\t<span class=\"circle bottom-right\"><\/span><span class=\"circle bottom-right\"><\/span><\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[8],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-centos-9","tag-cockpit"],"_links":{"self":[{"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":2,"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":26,"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/13\/revisions\/26"}],"wp:attachment":[{"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/paessens.org\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}