61054: Acronis Cyber Infrastructure and Acronis Storage: how to change lost passwords

use Google Translate

    Last update: 17-08-2022

    This article is intended for Acronis Cyber Infrastructure (ACI) / Acronis Storage (AS) administrators.

    This article describes two scenarios:

    • How to change an SSH root password in case if Web Control Panel (WebCP) "admin" (or any other user with permissions to upload SSH keys) password is known;
    • How to change a lost Web Control Panel (WebCP) "admin" user password in case SSH password is known (or SSH connection is available using SSH key).

    Case of credentials to Acronis Storage installation being lost is not covered. If you face this situation, please contact Acronis Technical support for guidance. 

    Change SSH "root" password in case if Web Control Panel "admin" password is known

    1. Follow instructions in product documentation to set up SSH key authentication for your Infrastructure;
    2. SSH key, as installed using Web CP, provides you root access to any node of ACI cluster;
    3. Connect the desired ACI node over SSH and change root password using the passwd command;
    4. Repeat step 3 of this instruction for each node of the cluster if required. 

    Change lost Web Control Panel "admin" user password using SSH access

    Acronis Cyber Infrastructure 3.5 and higher

    1. Using SSH, connect to your Management node.
       
    2. Issue the following commands:

    su - vstoradmin
    . /opt/rh/rh-python36/enable; export UI_BACKEND_CONFIG=~/etc/backend.cfg
    python manage.py admin -p "<new_password>"

    Where <new_password> is the password you would like to set to "admin" user.

    Usage example:

    -bash-4.2$ python manage.py admin -p "%1#2#&@"
    Creating user "admin"
    Ok

    Commands should be given under user account possessing root privileges

    Acronis Cyber Infrastructure 3.0 and Acronis Software-Defined Infrastructure 2.5

    1. Using SSH, connect to your Management node.
       
    2. Issue the following commands:

    su - vstoradmin
     . /opt/rh/rh-python34/enable; . venv/bin/activate; export UI_BACKEND_CONFIG=~/etc/backend.cfg

    Then in the venv shell:

    python manage.py admin -p "<new_password>"

    Where <new_password> is the password you would like to set to "admin" user 

    Output example:

    /usr/libexec/vstorage-ui-backend/venv/lib64/python3.4/site-packages/vstorage_ui_backend-2.1.48-py3.4.egg/backend/database.py:10: UserWarning: Add additional option in sqalchemy.create_engine function: json_serializer=<function dumps at 0x7f7cb066fae8>
    warnings.warn('Add additional option in sqalchemy.create_engine function: {}={}'.format(key, value))
    Creating user "admin"
    Ok

    Commands should be given under user account possessing root privileges

    Acronis Storage 2.0-2.4

    1. Using SSH, connect to your Management node.
       
    2. Issue the following commands:

    source  ~vstoradmin/libexec/functions.sh
    execute_manage_script admin --password "<new_password>"

    Where <new_password> is the password you would like to set to "admin" user 

    Commands should be given under user account possessing root privileges

    Tags: