Good morning,
i want to update all wazuh agents with one command.
I notice that this is not possible via the command:
/var/ossec/bin/agent_upgrade -a all
Shame :)
I try via the api, the documentation page says the default user/password is wazuh:wazuh
Ref:
https://documentation.wazuh.com/4.7/user-manual/api/getting-started.html#logging-into-the-wazuh-apicmd: curl -u wazuh:wazuh -k -X POST "
https://localhost:55000/security/user/authenticate"
resp: {"title": "Unauthorized", "detail": "Invalid credentials"}
I try via the login / password which allows me to access the web interface, same result.
I followed the documentation from
https://documentation.wazuh.com/current/user-manual/user-administration/password-management.html and grabbed the wazuh-passwords-tool.sh and tried the argument "-A" for the api but not knowing the current password, it doesn't work.
I tried the "-a" argument, here is the answer:
# bash wazuh-passwords-tool.sh -a
09/03/2024 09:12:51 INFO: Wazuh API admin credentials not provided, Wazuh API passwords not changed.
03/09/2024 09:13:07 INFO: The password for user admin is ***
09/03/2024 09:13:07 INFO: The password for user ... is ***
The agent and server installation was done with version 4.7 via:
1. > curl -sO
https://packages.wazuh.com/4.7/wazuh-install.sh 2. > sudo bash wazuh-install.sh -a
I seem to have encountered problems with the first command, hence the second "-a".
After this command, I don't remember seeing any user other than the one for the web interface that I noted and which works.
How to change this API password? or how to find it?
Regards.
Steph