# ERROR: Failed to reset password for the \[elastic\] user

**URL:** https://discuss.elastic.co/t/error-failed-to-reset-password-for-the-elastic-user/329618
**Category:** Elasticsearch
**Created:** [April 9, 2023, 5:20am UTC](https://discuss.elastic.co/t/error-failed-to-reset-password-for-the-elastic-user/329618 "2023-04-09T05:20:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hadi\_farzipour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hadi_farzipour/32/69187_2.png) [@hadi\_farzipour](https://discuss.elastic.co/u/hadi_farzipour)
#### Post date: [April 9, 2023, 5:20am UTC](https://discuss.elastic.co/t/error-failed-to-reset-password-for-the-elastic-user/329618/1 "2023-04-09T05:20:51Z")

</div>

Hi,  
I installed elasticsearch 8.7 on my windows server but on installing screen I did not get any prompt for my elasticsearch or kibana password, also when I tried to change the password I faced following error:

ERROR: Failed to reset password for the [elastic] user

My elasticsearch.yml file contains following lines

http.port: 8606  
network.host: 0.0.0.0  
path.data: E:\Data  
path.logs: E:\Logs  
xpack.security.enabled: true  
discovery.type: single-node

---

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [April 9, 2023, 7:44am UTC](https://discuss.elastic.co/t/error-failed-to-reset-password-for-the-elastic-user/329618/2 "2023-04-09T07:44:55Z")

</div>

> [@hadi\_farzipour](#):
>
> ERROR: Failed to reset password for the [elastic] user

Try with:  
`bin/elasticsearch-setup-passwords auto --url="http://localhost:8606/"`  
Also you can use `interactive` instead of `auto`.

---

<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: [May 7, 2023, 7:45am UTC](https://discuss.elastic.co/t/error-failed-to-reset-password-for-the-elastic-user/329618/3 "2023-05-07T07:45:17Z")

</div>

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