# Set my passwords using x-pack/setup-passwords from script?

**URL:** <https://discuss.elastic.co/t/set-my-passwords-using-x-pack-setup-passwords-from-script/123324>\
**Category:** Elasticsearch\
**Created:** [March 9, 2018, 6:38pm UTC](https://discuss.elastic.co/t/set-my-passwords-using-x-pack-setup-passwords-from-script/123324 "2018-03-09T18:38:59Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [March 14, 2018, 11:37pm UTC](https://discuss.elastic.co/t/set-my-passwords-using-x-pack-setup-passwords-from-script/123324/7 "2018-03-14T23:37:35Z")

</div>

I've moved this to the `X-Pack` forum.

Instructions for automating password setup are here:

> [@How to set passwords for built-in users in batch mode?](https://discuss.elastic.co/t/how-to-set-passwords-for-built-in-users-in-batch-mode/119655/6):
>
> @Vitaly_il how I may submit bootstrapping password to \_xpack/security/user/.../\_password API Step 0: Think of a password to use. I'll use "top-secret" Step 1: Shutdown at least 1 node of your cluster. Step 2: Add a "bootstrap.password" to the keystore on that node: bin/elasticsearch-keystore add "bootstrap.password" Enter value for bootstrap.password: top-secret Step 3: Start that elasticsearch node. Step 4: Call curl -uelastic -XPUT -H 'Content-Type: application/json' 'http://localhos…

---

_[View the full topic](https://discuss.elastic.co/t/set-my-passwords-using-x-pack-setup-passwords-from-script/123324)._
