# Default username and password for Elasticsearch 7.15

**URL:** <https://discuss.elastic.co/t/default-username-and-password-for-elasticsearch-7-15/287235>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [October 20, 2021, 9:41pm UTC](https://discuss.elastic.co/t/default-username-and-password-for-elasticsearch-7-15/287235 "2021-10-20T21:41:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![harryco](https://avatars.discourse-cdn.com/v4/letter/h/8baadc/32.png) [@harryco](https://discuss.elastic.co/u/harryco)\
**Post date:** [October 20, 2021, 9:41pm UTC](https://discuss.elastic.co/t/default-username-and-password-for-elasticsearch-7-15/287235/1 "2021-10-20T21:41:08Z")

</div>

Hi,

I just installed Elasticsearch 7.15.1 on macOS Catalina, and I set the following in Elasticsearch.yml in order to enable security:

xpack.security.enabled: true

Now, I'm prompted for a username and password, but I don't know what they are. I've seen various posts that it's admin / elasticadmin, elastic / changeme, etc., but none of these work.

Can someone please tell me the default username and password? Also, where can I change these values?

Cheers,

Harry

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [October 20, 2021, 9:59pm UTC](https://discuss.elastic.co/t/default-username-and-password-for-elasticsearch-7-15/287235/2 "2021-10-20T21:59:29Z")

</div>

After you set `xpack.security.enabled: true` the next step is to do the [password portion](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-minimal-setup.html#security-create-builtin-users).

---

<div class="post-metadata">

**Author:** ![harryco](https://avatars.discourse-cdn.com/v4/letter/h/8baadc/32.png) [@harryco](https://discuss.elastic.co/u/harryco)\
**Post date:** [October 21, 2021, 6:09pm UTC](https://discuss.elastic.co/t/default-username-and-password-for-elasticsearch-7-15/287235/3 "2021-10-21T18:09:38Z")

</div>

That worked---cheers, Aaron! The instructions say, " After you set a password for the `elastic` user, you cannot run the `elasticsearch-setup-passwords` command a second time."

What do you do if you need to change the password again?

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [October 21, 2021, 7:12pm UTC](https://discuss.elastic.co/t/default-username-and-password-for-elasticsearch-7-15/287235/4 "2021-10-21T19:12:44Z")

</div>

You can change it in Kibana -\> Stack Management -\> Users or using the [API](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html).

---

<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:** [November 18, 2021, 7:13pm UTC](https://discuss.elastic.co/t/default-username-and-password-for-elasticsearch-7-15/287235/5 "2021-11-18T19:13:07Z")

</div>

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