How to reset the password of a user via the CLI?
You can reset a user’s password via the AIR-CLI. To access AIR-CLI and reset the password of a user.
-
Use a terminal emulator, such as PuTTY, to connect to the CLI of the AIR Console Server via SSH.
-
Get the AIR DB URI using the command: (It’s only necessary for two-tier installation)
cat /opt/binalyze-air/volumes/app/binalyze-air/config/.env -
Access the app container by executing the following command:
sudo docker exec -ti binalyze-air_app_1 sh -
Navigate to the root directory by executing the following command:
cd / -
Run AIR-CLI by executing the following command:
./air-cli -
Continue by selecting option 2 “reset password for a user” on the AIR-CLI screen.
-
Continue by providing the necessary information
If your system is single-tier, you can leave the values as default. (DB URI and DB name)
If your system is two-tier, you should manually provide the DB URI (on step 2). You can leave the DB name value as default.
-
When you log in with the new password, the system will prompt you to reset it.