-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing Default Passwords : securityadmin.sh script fails , "which" is not found ? #1432
Comments
Wazuh-passwords-tool.shIt appears that Wazuh has a password tool script. Except the docs still say to run the securityadmin.sh script.
|
Same problem |
i was changing my SSO setup/URLs and i encountered the same issue when trying to ingest an updated security_config.yml to the indexer container. it seems that the indexer container environment is missing some things for the script to just work. the script tries to get the java path from the environment variables. the script has a logic block that checks whether the binary path was found. if it wasn't it tries to use 'which' to find the binary. 'which' is not included in the indexer's containerized environment. so there are a few issues here. i found a quick solution for now find java with:
on 4.8, that gives /usr/share/wazuh-indexer/jdk/bin/java" inside the container, to ingest the updated secrity_config.yml:
this resulted in hopefully that can be adapted to your needs. look for the java location first before running the one liner after looking through my notes, i found an older page on the docs that mentions needing the EXPORT piece: cheers |
Wazuh : Changing Default Passwords
I have a script that worked in version 4.7.3 , now testing it in version 4.8.0 , it states that it fails. It says that line 31 requires
which and does not exist. I tried to install it, no root access. I even tried to wget the binary, wget not installed. Can you make
sure that the next release has which installed. This is the current way to update passwords for Opensearch. I know that it will be deprecated, except there is no other way to change the default passwords.
ERROR:
The text was updated successfully, but these errors were encountered: