# I don't see command setup-passwords in ../bin/x-pack/

**URL:** <https://discuss.elastic.co/t/i-dont-see-command-setup-passwords-in-bin-x-pack/113265>\
**Category:** Elasticsearch\
**Created:** [December 27, 2017, 5:21am UTC](https://discuss.elastic.co/t/i-dont-see-command-setup-passwords-in-bin-x-pack/113265 "2017-12-27T05:21:05Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachin8778](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sachin8778](https://discuss.elastic.co/u/sachin8778)\
**Post date:** [December 27, 2017, 5:21am UTC](https://discuss.elastic.co/t/i-dont-see-command-setup-passwords-in-bin-x-pack/113265/1 "2017-12-27T05:21:05Z")

</div>

Hi,  
I have installed x-pack plugins for elasticsearch and kibana. Now as per documentation, I am trying to setup the passwords for standard users e.g. elastic, kibana. However I don't see that command (setup-passwords) in respective folder. Am I missing something?

Thank you,  
Sachin

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [December 27, 2017, 7:13am UTC](https://discuss.elastic.co/t/i-dont-see-command-setup-passwords-in-bin-x-pack/113265/2 "2017-12-27T07:13:57Z")

</div>

Hi Sachin,

Please mention :

- Which version of Elasticsearch and Kibana you have installed
- What is your OS
- How did you do the installation ( manual download, package manager, etc. )
- Where did you try to find the setup-passwords executable ( `../bin/x-pack/` is a relative path so it depends where you were in the first place )

So that we can assist you further

---

<div class="post-metadata">

**Author:** ![sachin8778](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sachin8778](https://discuss.elastic.co/u/sachin8778)\
**Post date:** [December 27, 2017, 7:30am UTC](https://discuss.elastic.co/t/i-dont-see-command-setup-passwords-in-bin-x-pack/113265/3 "2017-12-27T07:30:03Z")

</div>

Thank you for your reply.

Here are the requested details.  
Versions - ES 5.6.0 Kibana 5.6.2  
OS - Linux Centos 7  
Installed using package manager - sudo yum install elasticsearch  
path: /usr/share/elasticsearch/bin/x-pack

Thank you,  
Sachin

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [December 27, 2017, 7:43am UTC](https://discuss.elastic.co/t/i-dont-see-command-setup-passwords-in-bin-x-pack/113265/4 "2017-12-27T07:43:29Z")

</div>

Have you [installed x-pack](https://www.elastic.co/guide/en/elasticsearch/reference/6.1/installing-xpack-es.html) in Elasticsearch and Kibana ? For your that would probably be

`sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install x-pack` and  
`sudo /usr/share/kibana/bin/kibana-plugin install x-pack`

---

<div class="post-metadata">

**Author:** ![sachin8778](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sachin8778](https://discuss.elastic.co/u/sachin8778)\
**Post date:** [December 27, 2017, 8:26am UTC](https://discuss.elastic.co/t/i-dont-see-command-setup-passwords-in-bin-x-pack/113265/5 "2017-12-27T08:26:55Z")

</div>

Thank you for your prompt response.

Yes, I had installed plugins exactly the way you listed. In fact I also tried removing x-pack and installed again the same way but no luck.

Removal -  
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin remove x-pack --purge  
sudo /usr/share/kibana/bin/kibana-plugin remove x-pack

---

<div class="post-metadata">

**Author:** ![sachin8778](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sachin8778](https://discuss.elastic.co/u/sachin8778)\
**Post date:** [December 27, 2017, 8:29am UTC](https://discuss.elastic.co/t/i-dont-see-command-setup-passwords-in-bin-x-pack/113265/6 "2017-12-27T08:29:05Z")

</div>

This is what I see in ../bin/x-pack directory:

[sachin.jadhav@janjira x-pack]$ pwd  
/usr/share/elasticsearch/bin/x-pack  
[sachin.jadhav@janjira x-pack]$ ls -lrt  
total 48  
-rwxr-xr-x 1 root root 2829 Dec 26 14:41 croneval  
-rwxr-xr-x 1 root root 96 Dec 26 14:41 certgen.bat  
-rwxr-xr-x 1 root root 110 Dec 26 14:41 syskeygen.bat  
-rwxr-xr-x 1 root root 125 Dec 26 14:41 migrate.bat  
-rwxr-xr-x 1 root root 104 Dec 26 14:41 extension.bat  
-rwxr-xr-x 1 root root 119 Dec 26 14:41 croneval.bat  
-rwxr-xr-x 1 root root 2891 Dec 26 14:41 certgen  
-rwxr-xr-x 1 root root 110 Dec 26 14:41 users.bat  
-rwxr-xr-x 1 root root 2906 Dec 26 14:41 users  
-rwxr-xr-x 1 root root 2918 Dec 26 14:41 syskeygen  
-rwxr-xr-x 1 root root 2920 Dec 26 14:41 migrate  
-rwxr-xr-x 1 root root 2487 Dec 26 14:41 extension

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [December 27, 2017, 8:47am UTC](https://discuss.elastic.co/t/i-dont-see-command-setup-passwords-in-bin-x-pack/113265/7 "2017-12-27T08:47:31Z")

</div>

Hi again Sachin,

Sorry for the back and forth, I somehow missed `Versions - ES 5.6.0 Kibana 5.6.2` in your second message.

`setup-passwords` was introduced in 6.0 and is not available in 5.x. Instead you should use the predefined password of the `elastic` user in order to set the passwords of all the builtin users [following the instructions](https://www.elastic.co/guide/en/x-pack/5.6/security-getting-started.html)

---

<div class="post-metadata">

**Author:** ![sachin8778](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sachin8778](https://discuss.elastic.co/u/sachin8778)\
**Post date:** [December 27, 2017, 9:14am UTC](https://discuss.elastic.co/t/i-dont-see-command-setup-passwords-in-bin-x-pack/113265/8 "2017-12-27T09:14:52Z")

</div>

Oh.. great, thanks a ton for your prompt resolution. I will try that right now.

I should have checked the version of documentation I was referring. Thank you again.

---

<div class="post-metadata">

**Author:** ![sachin8778](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sachin8778](https://discuss.elastic.co/u/sachin8778)\
**Post date:** [December 27, 2017, 10:57am UTC](https://discuss.elastic.co/t/i-dont-see-command-setup-passwords-in-bin-x-pack/113265/9 "2017-12-27T10:57:35Z")

</div>

Hi Ioannis,  
Setting password works following the link shared by you.

Now I am getting error in Kibana, screen shot given below. I searched other discussions, but not able to resolve it. Any help is highly appreciated.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/2/721ff69d2344833af16cdbc66b4d1916b8907d18.png)

---

<div class="post-metadata">

**Author:** ![sachin8778](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sachin8778](https://discuss.elastic.co/u/sachin8778)\
**Post date:** [December 27, 2017, 11:01am UTC](https://discuss.elastic.co/t/i-dont-see-command-setup-passwords-in-bin-x-pack/113265/10 "2017-12-27T11:01:03Z")

</div>

Please ignore this is resolved. Thanks.

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [December 27, 2017, 11:02am UTC](https://discuss.elastic.co/t/i-dont-see-command-setup-passwords-in-bin-x-pack/113265/11 "2017-12-27T11:02:53Z")

</div>

I am guessing you missed this part

> Once the kibana user password is reset, you need to update the Kibana server with the new password by  
> setting elasticsearch.password in the kibana.yml configuration file:  
> `elasticsearch.password: kibanapassword`

from the [relevant part of the documentation](https://www.elastic.co/guide/en/x-pack/5.6/setting-up-authentication.html)

---

<div class="post-metadata">

**Author:** ![sachin8778](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sachin8778](https://discuss.elastic.co/u/sachin8778)\
**Post date:** [December 27, 2017, 11:14am UTC](https://discuss.elastic.co/t/i-dont-see-command-setup-passwords-in-bin-x-pack/113265/12 "2017-12-27T11:14:15Z")

</div>

yes, i did change password but forgot to un-comment that line 🙂

---

<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:** [January 24, 2018, 11:14am UTC](https://discuss.elastic.co/t/i-dont-see-command-setup-passwords-in-bin-x-pack/113265/13 "2018-01-24T11:14:16Z")

</div>

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