# X-pack default password is not working for Elasticsearch 5.6.8 version

**URL:** <https://discuss.elastic.co/t/x-pack-default-password-is-not-working-for-elasticsearch-5-6-8-version/123371>\
**Category:** Elasticsearch\
**Created:** [March 10, 2018, 6:06am UTC](https://discuss.elastic.co/t/x-pack-default-password-is-not-working-for-elasticsearch-5-6-8-version/123371 "2018-03-10T06:06:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob999c](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@bob999c](https://discuss.elastic.co/u/bob999c)\
**Post date:** [March 10, 2018, 6:06am UTC](https://discuss.elastic.co/t/x-pack-default-password-is-not-working-for-elasticsearch-5-6-8-version/123371/1 "2018-03-10T06:06:49Z")

</div>

Hi,  
I installed X-Pack(5.6.8) plugin on ElasticSearch(5.6.8).Here is the error I see when I try to do curl with default password.

[root@dev01-2 elasticsearch]# curl -XGET -u elastic:changeme [http://10.2.2.5:9200](http://10.2.2.5:9200)  
{"error":{"root\_cause":[{"type":"security\_exception","reason":"failed to authenticate user [elastic]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}}],"type":"security\_exception","reason":"failed to authenticate user [elastic]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}},"status":401}[root@dev01-2 elasticsearch]#

Please help me to resolve the issue?

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [March 10, 2018, 6:17am UTC](https://discuss.elastic.co/t/x-pack-default-password-is-not-working-for-elasticsearch-5-6-8-version/123371/2 "2018-03-10T06:17:17Z")

</div>

Is the default password enabled, or has it been changed to something else? Has Elasticsearch been restarted since installing x-pack?

[https://www.elastic.co/guide/en/x-pack/5.6/setting-up-authentication.html#disabling-default-password](https://www.elastic.co/guide/en/x-pack/5.6/setting-up-authentication.html#disabling-default-password)

---

<div class="post-metadata">

**Author:** ![bob999c](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@bob999c](https://discuss.elastic.co/u/bob999c)\
**Post date:** [March 10, 2018, 6:35am UTC](https://discuss.elastic.co/t/x-pack-default-password-is-not-working-for-elasticsearch-5-6-8-version/123371/3 "2018-03-10T06:35:16Z")

</div>

Thanks.

After adding below setting to elasticsearch.yml, it is working fine.

xpack.security.enabled: true  
xpack.graph.enabled: true  
xpack.ml.enabled: true  
xpack.monitoring.enabled: true  
xpack.watcher.enabled: true  
xpack.security.authc.accept\_default\_password: true

---

<div class="post-metadata">

**Author:** ![bob999c](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@bob999c](https://discuss.elastic.co/u/bob999c)\
**Post date:** [March 10, 2018, 7:08am UTC](https://discuss.elastic.co/t/x-pack-default-password-is-not-working-for-elasticsearch-5-6-8-version/123371/4 "2018-03-10T07:08:05Z")

</div>

Hi,  
Somehow after adding new node to elasticsearch cluster, default password not working again.Can you please help me to fix the issue?

Both nodes have same configuration.

---

<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:** [April 7, 2018, 7:08am UTC](https://discuss.elastic.co/t/x-pack-default-password-is-not-working-for-elasticsearch-5-6-8-version/123371/5 "2018-04-07T07:08:19Z")

</div>

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