{"id":19282,"date":"2023-11-16T23:06:12","date_gmt":"2023-11-16T20:06:12","guid":{"rendered":"https:\/\/kifarunix.com\/?p=19282"},"modified":"2024-03-10T14:53:21","modified_gmt":"2024-03-10T11:53:21","slug":"how-to-reset-ceph-dashboard-admin-password","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/how-to-reset-ceph-dashboard-admin-password\/","title":{"rendered":"How to Reset Ceph Dashboard Admin Password"},"content":{"rendered":"\n<p>In this blog post, you will learn how to reset <a href=\"https:\/\/docs.ceph.com\/en\/latest\/mgr\/dashboard\/\" target=\"_blank\" rel=\"noreferrer noopener\">Ceph dashboard<\/a> admin password. The Ceph dashboard serves as a central hub for monitoring and managing Ceph storage clusters, providing a user-friendly interface.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#resetting-ceph-dashboard-admin-password\">Resetting Ceph Dashboard Admin Password<\/a><ul><li><a href=\"#create-new-ceph-admin-password\">Create New Ceph Admin Password<\/a><\/li><li><a href=\"#resetting-ceph-dashboard-admin-password-1\">Resetting Ceph Dashboard Admin Password<\/a><\/li><li><a href=\"#verify-new-ceph-dashboard-admin-password\">Verify New Ceph Dashboard Admin Password<\/a><\/li><\/ul><\/li><li><a href=\"#other-tutorials\">Other Tutorials<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"resetting-ceph-dashboard-admin-password\">Resetting Ceph Dashboard Admin Password<\/h2>\n\n\n\n<p>In instances where the admin password needs resetting due to security measures or forgotten credentials, the procedure involves interaction with the Ceph cluster&#8217;s command line.<\/p>\n\n\n\n<p>Ceph dashboard user password can be set using the command;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ceph dashboard ac-user-set-password &lt;username&gt; &#91;--force-password]<\/code><\/pre>\n\n\n\n<p>Ensure you have installed common ceph packages so you can be able to execute ceph commands directly.<\/p>\n\n\n\n<p>Otherwise, just login to Ceph shel;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo cephadm shell<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-new-ceph-admin-password\">Create New Ceph Admin Password<\/h3>\n\n\n\n<p>To begin with, create a new ceph dashboard admin user password. Enter the password in a file.<\/p>\n\n\n\n<p><em>Notice the space before the echo command below. This is to ensure that bash doesn&#8217;t store the password in the history.<\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>&#91;space]<\/strong>echo \"myStr0ngPass\" &gt; ceph-dash-pass<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"resetting-ceph-dashboard-admin-password-1\">Resetting Ceph Dashboard Admin Password<\/h3>\n\n\n\n<p>Once you create a password, you can reset it as follows;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ceph dashboard ac-user-set-password &lt;username&gt; -i &lt;password-file&gt;<\/code><\/pre>\n\n\n\n<p>For example;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ceph dashboard ac-user-set-password admin -i ceph-dash-pass<\/code><\/pre>\n\n\n\n<p>If the password doesn&#8217;t meet the minimum complexity required, you will get;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Error EINVAL: Password is too weak<\/code><\/pre>\n\n\n\n<p>Otherwise;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\"username\": \"admin\", \"password\": \"$2b$12$wh5L5VOcYaroC8hh1qIWcOshlnN8bUXI6dguDQ9l1v7hEAarDllqG\", \"roles\": &#91;\"administrator\"], \"name\": null, \"email\": null, \"lastUpdate\": 1700163960, \"enabled\": true, \"pwdExpirationDate\": null, \"pwdUpdateRequired\": false}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"verify-new-ceph-dashboard-admin-password\">Verify New Ceph Dashboard Admin Password<\/h3>\n\n\n\n<p>Now, go back to the browser, launch access to Ceph and check if the new password works;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1376\" height=\"795\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/11\/password-reset-ceph-dashboard.png?v=1700164456\" alt=\"How to Reset Ceph Dashboard Admin Password\" class=\"wp-image-19284\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/11\/password-reset-ceph-dashboard.png?v=1700164456 1376w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/11\/password-reset-ceph-dashboard-768x444.png?v=1700164456 768w\" sizes=\"(max-width: 1376px) 100vw, 1376px\" \/><\/figure>\n\n\n\n<p>If the password is correct, you will successfully login.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1372\" height=\"821\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/11\/ceph-dashboard.png?v=1700164482\" alt=\"\" class=\"wp-image-19285\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/11\/ceph-dashboard.png?v=1700164482 1372w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/11\/ceph-dashboard-768x460.png?v=1700164482 768w\" sizes=\"(max-width: 1372px) 100vw, 1372px\" \/><\/figure>\n\n\n\n<p>By following specific commands and authentication steps outlined in this guide, administrators can efficiently reset the Ceph dashboard admin password, reinforcing the security of the storage infrastructure. This ensures that authorized personnel retain control over the Ceph Dashboard, facilitating seamless administration and monitoring of the Ceph storage environment.<\/p>\n\n\n\n<p>That concludes our guide on how to resetting Ceph dashboard admin password.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"other-tutorials\">Other Tutorials<\/h2>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/?s=ceph+storage+cluster\" target=\"_blank\" rel=\"noreferrer noopener\">How to Setup Ceph Storage Cluster on Ubuntu<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog post, you will learn how to reset Ceph dashboard admin password. The Ceph dashboard serves as a central hub for monitoring and<\/p>\n","protected":false},"author":10,"featured_media":19284,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,1338,352,34,39],"tags":[7306,7304,7307,7305],"class_list":["post-19282","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-ceph","category-password-policies","category-security","category-storage","tag-ceph-dashboard-password-reset","tag-reset-ceph-admin-password","tag-reset-ceph-dashboard","tag-reset-ceph-dashboard-password","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/19282"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=19282"}],"version-history":[{"count":5,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/19282\/revisions"}],"predecessor-version":[{"id":20878,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/19282\/revisions\/20878"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/19284"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=19282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=19282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=19282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}