# Setup-password file is not available upon new install

**URL:** <https://discuss.elastic.co/t/setup-password-file-is-not-available-upon-new-install/132086>\
**Category:** Elasticsearch\
**Created:** [May 16, 2018, 9:46am UTC](https://discuss.elastic.co/t/setup-password-file-is-not-available-upon-new-install/132086 "2018-05-16T09:46:25Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![skyluke.1987](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@skyluke.1987](https://discuss.elastic.co/u/skyluke.1987)\
**Post date:** [May 16, 2018, 9:46am UTC](https://discuss.elastic.co/t/setup-password-file-is-not-available-upon-new-install/132086/1 "2018-05-16T09:46:25Z")

</div>

When I initially install x-pack, there is no "setup-password" file to set the password. Then I gotten a guide, trying to uninstall the package, and reinstall, it still not there. May I know is there any solution to it?

---

<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:** [May 17, 2018, 2:39am UTC](https://discuss.elastic.co/t/setup-password-file-is-not-available-upon-new-install/132086/2 "2018-05-17T02:39:13Z")

</div>

Can you provide a few more details?

- What version of Elasticsearch are you running?
- What platform are you running on?
- In which directory are you looking for the `setup-passwords` utility?

---

<div class="post-metadata">

**Author:** ![skyluke.1987](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@skyluke.1987](https://discuss.elastic.co/u/skyluke.1987)\
**Post date:** [May 17, 2018, 3:12am UTC](https://discuss.elastic.co/t/setup-password-file-is-not-available-upon-new-install/132086/3 "2018-05-17T03:12:53Z")

</div>

Hi Tim, below are answer to your questions:

1. I am running the latest version from the official website.
2. Linux Debian 4.9.88
3. under bin/elasticsearch

Below is my Kibana.yml file settings:

- server.port: 5601
- server.host: 127.0.0.1
- elasticsearch.url: "[http://127.0.0.1:9200](http://127.0.0.1:9200)"
- elasticsearch.preserveHost: true
- elasticsearch.pingTimeout: 1500
- .requesttimeout: 30000

---

<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:** [May 17, 2018, 4:33am UTC](https://discuss.elastic.co/t/setup-password-file-is-not-available-upon-new-install/132086/4 "2018-05-17T04:33:03Z")

</div>

When providing version numbers, please be as precise as possible.  
The output from `elasticsearch -version` is ideal.

It sounds like you're looking for the command in the wrong place.  
`setup-passwords` is in `bin/x-pack/`

---

<div class="post-metadata">

**Author:** ![skyluke.1987](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@skyluke.1987](https://discuss.elastic.co/u/skyluke.1987)\
**Post date:** [May 17, 2018, 7:46am UTC](https://discuss.elastic.co/t/setup-password-file-is-not-available-upon-new-install/132086/5 "2018-05-17T07:46:02Z")

</div>

elasticsearch -version \>\> command not found.

I am exploring in this directory: /etc/elasticsearch/x-pack/  
Files within it:

- log4j2.properties
- role\_mapping.yml
- roles.yml
- users
- users\_roles

---

<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:** [May 17, 2018, 8:23am UTC](https://discuss.elastic.co/t/setup-password-file-is-not-available-upon-new-install/132086/6 "2018-05-17T08:23:57Z")

</div>

`/etc/elasticsearch/x-pack/` is a configuration directory, not a `bin` directory, it doesn't contain any commands.

I assume based on your platform that you installed from the `.deb` package. In that case, you should read up on the directory layout here:

- [https://www.elastic.co/guide/en/elasticsearch/reference/6.2/deb.html#deb-layout](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/deb.html#deb-layout)

and look for the `elasticsearch` and `setup-passwords` commands in the bin directory.

---

<div class="post-metadata">

**Author:** ![skyluke.1987](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@skyluke.1987](https://discuss.elastic.co/u/skyluke.1987)\
**Post date:** [May 17, 2018, 9:15am UTC](https://discuss.elastic.co/t/setup-password-file-is-not-available-upon-new-install/132086/7 "2018-05-17T09:15:44Z")

</div>

I found the "elasticsearch" file but not the "setup-passwords" file there. Is there a way to check or to create the file?

---

<div class="post-metadata">

**Author:** ![Yogesh\_Gaikwad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yogesh_gaikwad/32/27025_2.png) [@Yogesh\_Gaikwad](https://discuss.elastic.co/u/Yogesh_Gaikwad)\
**Post date:** [May 18, 2018, 12:30am UTC](https://discuss.elastic.co/t/setup-password-file-is-not-available-upon-new-install/132086/8 "2018-05-18T00:30:13Z")

</div>

Hi @skyluke.1987,

If you have found command `/usr/share/elasticsearch/bin/elasticsearch`, could you please run the following command: `/usr/share/elasticsearch/bin/elasticsearch -version`  
Please post the output here so we know what version you have in your environment.

You should be able to locate `setup-passwords` in the directory `/usr/share/elasticsearch/bin/x-pack/`.

Hope this helps.

Regards,  
Yogesh Gaikwad

---

<div class="post-metadata">

**Author:** ![skyluke.1987](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@skyluke.1987](https://discuss.elastic.co/u/skyluke.1987)\
**Post date:** [May 18, 2018, 2:06am UTC](https://discuss.elastic.co/t/setup-password-file-is-not-available-upon-new-install/132086/9 "2018-05-18T02:06:38Z")

</div>

Hi Yogesh, thanks for your guidance. Below is the result.

![image](https://us1.discourse-cdn.com/elastic/original/3X/a/1/a15763ea4425d47eff6e4523f5e8f5aad65e10c7.jpg)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/b/4bd2770d2e0b42e262f88ed4735b79eef19ba570.jpg)

Files inx-pack directory:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/8/5850fc3113fd77c47d8050bd40a4ec8b223a3863.jpg)

---

<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:** [May 18, 2018, 4:18am UTC](https://discuss.elastic.co/t/setup-password-file-is-not-available-upon-new-install/132086/10 "2018-05-18T04:18:42Z")

</div>

It doesn't look like you have the latest version of Elasticsearch.  
Your files are timestamped from 2017, and the most recent release is 6.2.4 from April this yeah.

Can you please run the version command _exactly_ as @Yogesh_Gaikwad requested:

```
/usr/share/elasticsearch/bin/elasticsearch -version
```

---

<div class="post-metadata">

**Author:** ![skyluke.1987](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@skyluke.1987](https://discuss.elastic.co/u/skyluke.1987)\
**Post date:** [June 1, 2018, 3:13am UTC](https://discuss.elastic.co/t/setup-password-file-is-not-available-upon-new-install/132086/11 "2018-06-01T03:13:53Z")

</div>

Hi my version is 5.5.2/ JVM: 1.8.0\_141

---

<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:** [June 1, 2018, 8:52am UTC](https://discuss.elastic.co/t/setup-password-file-is-not-available-upon-new-install/132086/12 "2018-06-01T08:52:26Z")

</div>

`setup-passwords` is a utility for Elasticsearch 6.0 and above.

Since you are just getting started, I would recommend that you install a more recent version of Elasticsearch.

If you want to stick with your current version, then you'll need to follow setup instructions for that version.

---

<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:** [June 29, 2018, 8:52am UTC](https://discuss.elastic.co/t/setup-password-file-is-not-available-upon-new-install/132086/13 "2018-06-29T08:52:31Z")

</div>

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