Hi,
I want to change the admin user password used to log in to the Wazuh Dashboard web interface.
The GUI shows: "Resource 'admin' is reserved" and does not allow changing it.
What is the recommended and safe way to update the admin password in a production cluster?
Thank you for attention.
Hi Emar,
To change the admin password that you use for login to the GUI. Run this command on your indexer server
Open a terminal on your Wazuh indexer server and run this command.
bash /usr/share/wazuh-indexer/plugins/opensearch-security/tools/wazuh-passwords-tool.sh -u admin -p Secr3tP4ssw*rd
Replace the Secr3tP4ssw*rd with your password.
The password must have a length between 8 and 64 characters and contain at least one upper case letter, one lower case letter, a number and one of the following symbols: .*+?-.
Ref: Password management
If you use the tool in an all-in-one deployment, it automatically updates the passwords where necessary. If you use it in a distributed environment, you may have to update the password on other components.
For admin users, you just need to update the password in the filebeat and Wazuh manager’s keystore.
Open a terminal on the Wazuh manager keystore and run this command.
echo <ADMIN_PASSWORD> | filebeat keystore add password --stdin --force
echo '<ADMIN_PASSWORD>' | /var/ossec/bin/wazuh-keystore -f indexer -k password
Restart Filebeat to apply the changes.
systemctl restart filebeat
echo <ADMIN_PASSWORD> | filebeat keystore add password --stdin --force
echo '<ADMIN_PASSWORD>' | /var/ossec/bin/wazuh-keystore -f indexer -k password
Restart Filebeat to apply the changes.
systemctl restart filebeat