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

use Google Translate

Last update: Mon, 2020-02-17 21:11

This article is intended for Acronis Cyber Infrastructure/Acronis Storage administrators who are using Acronis Storage with Acronis Backup Cloud, Acronis Backup Advanced 12.5 or as a general-purpose storage

This article describes two scenarios:

  • How to change a lost Web Control Panel "admin" user password in case SSH password is known (or SSH connection is available using SSH key) 
  • How to change an SSH root password in case Web CP "admin" (or any other user) password is known

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

Acronis Cyber Infrastructure 3.5

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

  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 

You should see this result:
manage.py:25: MonkeyPatchWarning: Monkey-patching ssl after ssl has already been imported may lead to errors, including RecursionError on Python 3.6. Please monkey-patch earlier. See https:
//github.com/gevent/gevent/issues/1016 
 monkey.patch_all() 
/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/backend/database.py:10: UserWarning: Add additional option in sqalchemy.create_engine function: json_serializer=<function dumps at 0
x7f5c9fc5a400> 
 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 Cyber Infrastructure 3.0 and Acronis Software-Defined Infrastructure 2.5

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

  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 

You should see this result:
/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

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

  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

Change root password in case Web CP "admin" password is known

1. Follow instructions in product documentation to set up SSH key authentication for your Acronis Storage.

2. Log in to the desired Acronis Storage node and change root password using the passwd command.

3. SSH key, as installed using Web CP, provides you root access to any node of Acronis Storage cluster.

4. Repeat step 2 of this instruction for each node of the cluster. 

Tags: