How to reset the password of a user via the CLI?
You can reset a user’s password via the AIR-CLI. Use this method as a recovery fallback for when no administrator can sign in to the Console, as it assigns a temporary password that the user must change at their next sign-in.
When the Console is reachable, reset passwords from Settings > User Management > Users instead. That action issues a single-use reset link rather than a temporary password, and records the reset in the Console audit log.
Resetting a User PasswordTo 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.