Hello Julian!
I tried to change the password, and it worked. To resolve the issue you can try these steps:
Make sure you are running the command with root privileges.
Check the file permissions for the config files and ensure that the user executing the command has the necessary permissions to access them.
Verify that the paths to the certificate and key files are correct.
Ensure that the Wazuh Indexer service is running and accessible on port 9200.
If the issue persists, you can try restarting the Wazuh container and then running the command again.
If you continue to experience permission denied errors, please provide more details about your environment and the specific error messages you are encountering so that we can assist you further.
Also, if you are not using docker, you can follow these steps to change the administrator password using the command line:
Access the terminal or command prompt. Run the following command, replacing <passwd> with the new password you want to set and "admin" with the user for whom you want to change the password:
/usr/share/wazuh-indexer/plugins/opensearch-security/tools/wazuh-passwords-tool.sh -u admin -p <passwd>
If your deployment is not an all-in-one setup, perform the following additional steps:
Set the admin password in Filebeat:
echo <admin-password> | filebeat keystore add password --stdin --force
Change the password in Filebeat configuration:
nano /etc/filebeat/filebeat.yml
filebeat test output
systemctl restart filebeat
By following these steps, you should be able to change the admin password for Wazuh without encountering the permissions issue you faced earlier. For more information on password management in Wazuh, you can refer to the official documentation here:
Wazuh - Password management