# Not able to set Kibana password via scrips

**URL:** <https://discuss.elastic.co/t/not-able-to-set-kibana-password-via-scrips/141103>\
**Category:** Kibana\
**Created:** [July 23, 2018, 8:07am UTC](https://discuss.elastic.co/t/not-able-to-set-kibana-password-via-scrips/141103 "2018-07-23T08:07:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohit02bits](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@rohit02bits](https://discuss.elastic.co/u/rohit02bits)\
**Post date:** [July 23, 2018, 8:07am UTC](https://discuss.elastic.co/t/not-able-to-set-kibana-password-via-scrips/141103/1 "2018-07-23T08:07:57Z")

</div>

I am new to elasticsearch. I am using following command

printf "XXX" | bin/elasticsearch-keystore add -x "bootstrap.password"

To create password. This sets the password of elastic user but the kibana user password is not updated

---

<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:** [July 23, 2018, 8:50am UTC](https://discuss.elastic.co/t/not-able-to-set-kibana-password-via-scrips/141103/2 "2018-07-23T08:50:32Z")

</div>

That is not the correct way to set the `elastic` password.

You need to use the `setup-passwords` script, _or_ use the [Change Password API](https://www.elastic.co/guide/en/elasticsearch/reference/6.3/security-api-change-password.html).

Setting `bootstrap.password` is a temporary measure to enable you to get the cluster up and running so that you can assign permanent passwords to all users. You should not attempt to use it as a permanent authentication mechanism for a production (or even test) cluster.

---

<div class="post-metadata">

**Author:** ![rohit02bits](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@rohit02bits](https://discuss.elastic.co/u/rohit02bits)\
**Post date:** [July 24, 2018, 4:21am UTC](https://discuss.elastic.co/t/not-able-to-set-kibana-password-via-scrips/141103/3 "2018-07-24T04:21:14Z")

</div>

Thanks, will ensure the passwords are set through the API.

---

<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:** [August 21, 2018, 4:21am UTC](https://discuss.elastic.co/t/not-able-to-set-kibana-password-via-scrips/141103/4 "2018-08-21T04:21:15Z")

</div>

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