# Where are the elastic password?

**URL:** https://discuss.elastic.co/t/where-are-the-elastic-password/318112
**Category:** Elasticsearch
**Created:** [November 3, 2022, 2:09pm UTC](https://discuss.elastic.co/t/where-are-the-elastic-password/318112 "2022-11-03T14:09:32Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Nikolas1306](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikolas1306/32/111507_2.png) [@Nikolas1306](https://discuss.elastic.co/u/Nikolas1306)
#### Post date: [November 3, 2022, 2:09pm UTC](https://discuss.elastic.co/t/where-are-the-elastic-password/318112/1 "2022-11-03T14:09:32Z")

</div>

i installed with

```auto

sudo yum install --enablerepo=elasticsearch elasticsearch

```

```auto
========================================================================================================================
 Package Arch Version Repository Size
========================================================================================================================
Installing:
 elasticsearch x86_64 8.5.0-1 elasticsearch 554 M

```

but not see the pwd on console when install

```auto
curl --cacert /etc/elasticsearch/certs/http_ca.crt -u elastic https://localhost:9200
Enter host password for user 'elastic':

```

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [November 3, 2022, 2:47pm UTC](https://discuss.elastic.co/t/where-are-the-elastic-password/318112/2 "2022-11-03T14:47:02Z")

</div>

If this is the first install, it will run a setup autoconfiguration and print the password and some information before finishing the installation.

If it is not the first install or you didn't copy the password that was print out in the screen you will need to reset it if you do not remember.

You may use the [elasticsearch-reset-password](https://www.elastic.co/guide/en/elasticsearch/reference/current/reset-password.html) to reset it.

---

<div class="post-metadata">

### Author: ![Nikolas1306](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikolas1306/32/111507_2.png) [@Nikolas1306](https://discuss.elastic.co/u/Nikolas1306)
#### Post date: [November 3, 2022, 3:41pm UTC](https://discuss.elastic.co/t/where-are-the-elastic-password/318112/3 "2022-11-03T15:41:56Z")

</div>

```auto
./elasticsearch-reset-password
Resets the password of users in the native realm and built-in users.

Option (* = required) Description
--------------------- -----------
-E <KeyValuePair> Configure a setting
-a, --auto
-b, --batch
-f, --force Use this option to force execution of the command
                         against a cluster that is currently unhealthy.
-h, --help Show help
-i, --interactive
-s, --silent Show minimal output
* -u, --username The username of the user whose password will be reset
--url the URL where the elasticsearch node listens for
                         connections.
-v, --verbose Show verbose output
ERROR: Missing required option(s) [u/username]

```

---

<div class="post-metadata">

### Author: ![Nikolas1306](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikolas1306/32/111507_2.png) [@Nikolas1306](https://discuss.elastic.co/u/Nikolas1306)
#### Post date: [November 3, 2022, 3:45pm UTC](https://discuss.elastic.co/t/where-are-the-elastic-password/318112/4 "2022-11-03T15:45:52Z")

</div>

```auto
./elasticsearch-reset-password -u kybana_system -i
This tool will reset the password of the [kybana_system] user.
You will be prompted to enter the password.
Please confirm that you would like to continue [y/N]y

Enter password for [kybana_system]:
Re-enter password for [kybana_system]:

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

```

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [November 3, 2022, 3:55pm UTC](https://discuss.elastic.co/t/where-are-the-elastic-password/318112/5 "2022-11-03T15:55:54Z")

</div>

Why are you reseting the `kibana_system` user if your issue was with the `elastic` user?

Did you run it with `sudo` or `sudo -u elasticsearch`? You need to.

Try to run with the option `-v` to show more information about why it could not reset the password.

---

<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: [December 1, 2022, 3:56pm UTC](https://discuss.elastic.co/t/where-are-the-elastic-password/318112/6 "2022-12-01T15:56:36Z")

</div>

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