Reputation: 205
Context: Setting up Shield on my local machine for a 1 node Elasticsearch
Machine: Mac OSX 10.9.5
After installing Shield, I tried adding admin users but failed to do so because initially I did not restart my ES. During this attempt, I tried a bunch of username and password combinations(My bad here).
After I was pointed out that I had to restart ES before creating any users, I did so. Now, everytime I open localhost:9200
on my browser, I am required to provide a username and password.
I have tried most of the combinations that I 'attempted' to create earlier, but non seems to be the right one.
Upon running the bin/shield/users
, it shows that I have one user which is my machine name. Tried again a bunch of possible passwords that I could think of, but nothing seems to be the right one. Below is the error I'm getting
{"error":"AuthenticationException[unable to authenticate user [username] for REST request [/_shield]]","status":401}
So, any idea on how I could reset the password or the delete the user entirely ??
Upvotes: 4
Views: 3207
Reputation: 52368
Use the esusers userdel username
command to delete that username and add another one of your choice.
Upvotes: 6