# Unable to change the elastic user password

**URL:** <https://discuss.elastic.co/t/unable-to-change-the-elastic-user-password/269508>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [April 7, 2021, 6:18pm UTC](https://discuss.elastic.co/t/unable-to-change-the-elastic-user-password/269508 "2021-04-07T18:18:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harsha7071](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Harsha7071](https://discuss.elastic.co/u/Harsha7071)\
**Post date:** [April 7, 2021, 6:18pm UTC](https://discuss.elastic.co/t/unable-to-change-the-elastic-user-password/269508/1 "2021-04-07T18:18:32Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/f/1/f170f8ec276b698e7e5a34b44255a6806b6742fd.png)

We used the below command to change the password however it shows an error as per the screen shot attached.

/usr/share/elasticsearch/bin/elasticsearch-setup-passwords interactive

Elastic version- 7.9

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 7, 2021, 9:28pm UTC](https://discuss.elastic.co/t/unable-to-change-the-elastic-user-password/269508/2 "2021-04-07T21:28:29Z")

</div>

Welcome to our community! 😃  
Please don't post pictures of text, they are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [April 8, 2021, 1:54am UTC](https://discuss.elastic.co/t/unable-to-change-the-elastic-user-password/269508/3 "2021-04-08T01:54:40Z")

</div>

> [@Harsha7071](#):
>
> We used the below command to change the password however it shows an error as per the screen shot attached.

That command does not change the password, its sets the passwords for the first time. You cannot use it to change the password after it has already been set.

---

<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 6, 2021, 1:54am UTC](https://discuss.elastic.co/t/unable-to-change-the-elastic-user-password/269508/4 "2021-05-06T01:54:50Z")

</div>

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