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


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,

(Ioannis Kakavas) #2

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


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,

(Ioannis Kakavas) #4

Have you installed x-pack 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


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


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

[sachin.jadhav@janjira x-pack]$ pwd
[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

(Ioannis Kakavas) #7

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


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.


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.


Please ignore this is resolved. Thanks.

(Ioannis Kakavas) #11

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


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

(system) #13

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