# How to reset password?

**URL:** <https://discuss.elastic.co/t/how-to-reset-password/365906>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [September 2, 2024, 2:33pm UTC](https://discuss.elastic.co/t/how-to-reset-password/365906 "2024-09-02T14:33:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 3, 2024, 2:29pm UTC](https://discuss.elastic.co/t/how-to-reset-password/365906/4 "2024-09-03T14:29:13Z")

</div>

Hi @stephane_chan

Not easy in 7.17 take a look at this post

In short you need to create a new local superuser  
Then reset the elastic password using the API and that new super user.

> [@Reset Elasticsearch Internal User Password](https://discuss.elastic.co/t/reset-elasticsearch-internal-user-password/313837/6):
>
> What you need is to define a superuser with elasticsearch-users CLI. Then use that newly created user to call [ChangePassword API](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html) to change password for the elastic user. As @warkolm mentioned, you could use elasticsearch-reset-password if you are on version 8.x, which basically automates the above process for you (it also deletes the newly created user after the password change is completed).

> [@How to reset built in elastic password?](https://discuss.elastic.co/t/how-to-reset-built-in-elastic-password/264829/2):
>
> You can simply use Change Passwords API explained here: [Change passwords API | Elasticsearch Reference [7.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html) If you do not have any access to change your password, you can create a superuser, login with that user and then change your password using the command-line API or Kibana UI itself. As the document says: [Create or update users API | Elasticsearch Reference [7.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html) You will need to provide your username password in kibana.yml to access your dashboard as well: [...] e…

---

_[View the full topic](https://discuss.elastic.co/t/how-to-reset-password/365906)._
