# How to reset elastic user default password

**URL:** https://discuss.elastic.co/t/how-to-reset-elastic-user-default-password/256761
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [November 26, 2020, 11:11am UTC](https://discuss.elastic.co/t/how-to-reset-elastic-user-default-password/256761 "2020-11-26T11:11:35Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [November 26, 2020, 3:56pm UTC](https://discuss.elastic.co/t/how-to-reset-elastic-user-default-password/256761/5 "2020-11-26T15:56:18Z")

</div>

Would that help?

> [@I lost the password that has been changed](https://discuss.elastic.co/t/i-lost-the-password-that-has-been-changed/91867):
>
> I changed the password for the admin user "elastic", but the new password doesn't work. So I want to ask if there's a way to reset the password for the default admin user - "elastic". I have put the line: elasticsearch.password: "somepassword" in both elastic and kibana yml config file. But what I get when I try to login is "Oops! Error. Try again.". Please help!

---

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