# Installing X-pack

**URL:** <https://discuss.elastic.co/t/installing-x-pack/118325>\
**Category:** Elasticsearch\
**Created:** [February 3, 2018, 11:39pm UTC](https://discuss.elastic.co/t/installing-x-pack/118325 "2018-02-03T23:39:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gingeranyhow](https://avatars.discourse-cdn.com/v4/letter/g/ce7236/32.png) [@gingeranyhow](https://discuss.elastic.co/u/gingeranyhow)\
**Post date:** [February 3, 2018, 11:39pm UTC](https://discuss.elastic.co/t/installing-x-pack/118325/1 "2018-02-03T23:39:00Z")

</div>

I've installed X-pack on a working Elastic/Kibana build for ElasticSearch 6.1.2

However, I have no file called setup-passwords so I am unable to run `bin/x-pack/setup-passwords auto`. Both kibana and elastic search now require passwords to run, which I do not know what they are.

My x-pack folder is in `/usr/local/etc/elasticsearch/x-pack` and the only files in there are:

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

I initially installed Elastic Search and Kibana via homebrew, and I'm not sure if this disrupted my install. Everything was working fine before x-pack and I'm not sure how to move forward.

---

<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:** [February 4, 2018, 1:43am UTC](https://discuss.elastic.co/t/installing-x-pack/118325/2 "2018-02-04T01:43:54Z")

</div>

> [@gingeranyhow](#):
>
> /usr/local/etc/elasticsearch/x-pack

That's the configuration directory, not the `bin` directory. I can't remember exactly where homebrew puts the bin directory for Elasticsearch, but can you try running

```auto
type elasticsearch

```

And then do `ls -l` on that file to find where your Elasticsearch bin directory is located. There should be a x-pack directory under that.

---

<div class="post-metadata">

**Author:** ![gingeranyhow](https://avatars.discourse-cdn.com/v4/letter/g/ce7236/32.png) [@gingeranyhow](https://discuss.elastic.co/u/gingeranyhow)\
**Post date:** [February 4, 2018, 2:07am UTC](https://discuss.elastic.co/t/installing-x-pack/118325/3 "2018-02-04T02:07:14Z")

</div>

Hi @TimV - Thanks for responding! `type` command doesn't work for me, but you put me on the right track.

For anyone else finding this, I found the x-pack directory here:  
/usr/local/Cellar/elasticsearch/6.1.2/libexec/

And I located it from Mac Terminal with `find /usr/local -name '*setup-passwords*' -print`

---

<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:** [March 4, 2018, 2:07am UTC](https://discuss.elastic.co/t/installing-x-pack/118325/4 "2018-03-04T02:07:40Z")

</div>

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