# Setting password via x-pack

**URL:** <https://discuss.elastic.co/t/setting-password-via-x-pack/164819>\
**Category:** Elasticsearch\
**Created:** [January 18, 2019, 3:25pm UTC](https://discuss.elastic.co/t/setting-password-via-x-pack/164819 "2019-01-18T15:25:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amir\_Soleimani](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@Amir\_Soleimani](https://discuss.elastic.co/u/Amir_Soleimani)\
**Post date:** [January 18, 2019, 3:25pm UTC](https://discuss.elastic.co/t/setting-password-via-x-pack/164819/1 "2019-01-18T15:25:54Z")

</div>

Hello, I'm using elasticsearch-6.5.4 with this yml file:

xpack.security.enabled: true  
xpack.license.self\_generated.type: basic

i want to set interactive password via : "bin/x-pack/setup-passwords interactive" but i got this error:  
" bin/x-pack/setup-passwords is deprecated, use bin/elasticsearch-setup-passwords  
Sets the passwords for reserved users"

then i run "bin/elasticsearch-setup-passwords interactive", but this time there is another error:  
" Unexpected response code [403] from calling GET [http://127.0.0.1:9200/\_xpack/security/\_authenticate?pretty](http://127.0.0.1:9200/_xpack/security/_authenticate?pretty)

It doesn't look like the X-Pack security feature is available on this Elasticsearch node.

Please check if you have installed a license that allows access to X-Pack Security feature.

ERROR: X-Pack Security is not available."

can any one help?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 18, 2019, 4:11pm UTC](https://discuss.elastic.co/t/setting-password-via-x-pack/164819/2 "2019-01-18T16:11:26Z")

</div>

There's no security feature available with the basic license.

---

<div class="post-metadata">

**Author:** ![Amir\_Soleimani](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@Amir\_Soleimani](https://discuss.elastic.co/u/Amir_Soleimani)\
**Post date:** [January 19, 2019, 5:12am UTC](https://discuss.elastic.co/t/setting-password-via-x-pack/164819/3 "2019-01-19T05:12:04Z")

</div>

Thank you, I start my trial 30 days and then it works.

---

<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:** [February 16, 2019, 5:12am UTC](https://discuss.elastic.co/t/setting-password-via-x-pack/164819/4 "2019-02-16T05:12:07Z")

</div>

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