HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

elasticsearch-reset-password — Reset the passwords of users in the native realm and built-in users. More information: <https://www.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
theelasticsearch-reset-passwordcommanduserscliresetpasswords

Problem

How to use the elasticsearch-reset-password command: Reset the passwords of users in the native realm and built-in users. More information: <https://www.elastic.co/docs/reference/elasticsearch/command-line-tools/reset-password>.

Solution

elasticsearch-reset-password — Reset the passwords of users in the native realm and built-in users. More information: <https://www.elastic.co/docs/reference/elasticsearch/command-line-tools/reset-password>.

Reset the password of the user to an auto-generated value and print it in the console:
elasticsearch-reset-password {{[-u|--username]}} {{user}}


Prompt interactively to reset the password for a native user:
elasticsearch-reset-password {{[-u|--username]}} {{user}} {{[-i|--interactive]}}


Interactively reset the password for a user at a specified Elasticsearch node URL:
elasticsearch-reset-password --url {{host}}:{{port}} {{[-u|--username]}} {{user}} {{[-i|--interactive]}}

Code Snippets

Reset the password of the user to an auto-generated value and print it in the console

elasticsearch-reset-password {{[-u|--username]}} {{user}}

Prompt interactively to reset the password for a native user

elasticsearch-reset-password {{[-u|--username]}} {{user}} {{[-i|--interactive]}}

Interactively reset the password for a user at a specified Elasticsearch node URL

elasticsearch-reset-password --url {{host}}:{{port}} {{[-u|--username]}} {{user}} {{[-i|--interactive]}}

Context

tldr-pages: common/elasticsearch-reset-password

Revisions (0)

No revisions yet.