Automate Elasticsearch-reset-password in bash script

One way to fix file permissions is to use chown command:

sudo chown elasticsearch: YOUR_FILE

or

sudo chown -R elasticsearch: YOUR_DIRECTORY

Please note these issues are out scope of Elastic stack. You might also want to consult with your local Linux experts.

1 Like