Default Password Not Working


(Bjmaynard01) #1

Hi all, I am running into an issue on a newly installed cluster running elasticsearch 5.4. After installing x-pack on a node and restarting the service, I am attempting to change the password, but the default that is present in the documentation (changeme) isn't working for me.

I am typing in and getting the results below:
curl -XPUT -u elastic 'http://localhost:9200/_xpack/security/user/elastic/_password?pretty' -H 'Content-Type: application/json' -d '{ "password": "whatnewpasswordwillbe" }'
Enter host password for user 'elastic':
{
"error" : {
"root_cause" : [
{
"type" : "security_exception",
"reason" : "failed to authenticate user [elastic]",
"header" : {
"WWW-Authenticate" : "Basic realm="security" charset="UTF-8""
}
}
],
"type" : "security_exception",
"reason" : "failed to authenticate user [elastic]",
"header" : {
"WWW-Authenticate" : "Basic realm="security" charset="UTF-8""
}
},
"status" : 401
}

At the password prompt I am entering changeme as outlined in the documentation and still receiving a 401 error.


(Thiago Souza) #3

Hello,

The default password changeme is the right one if you have not changed it already.

Can you try using curl like below to make sure you are typing it right?
curl -XPUT -u elastic:changeme

Cheers


(system) #4

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