# How to reset built in elastic password?

**URL:** <https://discuss.elastic.co/t/how-to-reset-built-in-elastic-password/264829>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [February 19, 2021, 9:50am UTC](https://discuss.elastic.co/t/how-to-reset-built-in-elastic-password/264829 "2021-02-19T09:50:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gokulnath112](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@gokulnath112](https://discuss.elastic.co/u/gokulnath112)\
**Post date:** [February 19, 2021, 9:50am UTC](https://discuss.elastic.co/t/how-to-reset-built-in-elastic-password/264829/1 "2021-02-19T09:50:58Z")

</div>

Hi Team,  
I have lost my password for the built-in user "elastic". Please help me to recover the password. Or else shall I do change password for the same user in Kibana "users" page?  
If I change the password means anything i need to change in Configuration file?  
Thanks in advance.

Thanks,  
Gokul

---

<div class="post-metadata">

**Author:** ![rojin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rojin/32/97697_2.png) [@rojin](https://discuss.elastic.co/u/rojin)\
**Post date:** [February 20, 2021, 12:38pm UTC](https://discuss.elastic.co/t/how-to-reset-built-in-elastic-password/264829/2 "2021-02-20T12:38:04Z")

</div>

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:

```
[...]
elasticsearch.username: "username"
elasticsearch.password: "your_password"
[...]

```

This also might help you: [I lost the password that has been changed](https://discuss.elastic.co/t/i-lost-the-password-that-has-been-changed/91867)

---

<div class="post-metadata">

**Author:** ![gokulnath112](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@gokulnath112](https://discuss.elastic.co/u/gokulnath112)\
**Post date:** [February 23, 2021, 8:45am UTC](https://discuss.elastic.co/t/how-to-reset-built-in-elastic-password/264829/3 "2021-02-23T08:45:08Z")

</div>

Thanks alot for your reply.  
That helps.!!!!!

---

<div class="post-metadata">

**Author:** ![rojin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rojin/32/97697_2.png) [@rojin](https://discuss.elastic.co/u/rojin)\
**Post date:** [February 26, 2021, 4:15pm UTC](https://discuss.elastic.co/t/how-to-reset-built-in-elastic-password/264829/4 "2021-02-26T16:15:00Z")

</div>

Glad it helped you! 😃

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 26, 2021, 4:15pm UTC](https://discuss.elastic.co/t/how-to-reset-built-in-elastic-password/264829/5 "2021-03-26T16:15:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
