Skip to content

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 Password

To access AIR-CLI and reset the password of a user:

  1. Use a terminal emulator, such as PuTTY, to connect to the CLI of the AIR Console Server via SSH.

  2. 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

  3. Access the app container by executing the following command:

    sudo docker exec -ti binalyze-air_app_1 sh

  4. Navigate to the root directory by executing the following command:

    cd /

  5. Run AIR-CLI by executing the following command:

    ./air-cli

  6. Continue by selecting option 2 “reset password for a user” on the AIR-CLI screen.

  7. 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.

  8. When you log in with the new password, the system will prompt you to reset it.