fbpx
CUSTOMER TIPS

How To Change/Reset S3 Console GUI Superadmin Password

Updated: April 28, 2020

Description

The S3 Console superadmin password is set during the initial S3 Connector installation. The superadmin user on S3 Console GUI can manage accounts such as creating/deleting an account and generating an account’s access key ID and secret key pairs.
This KB describes how to change S3 Console GUI superadmin password.

Instructions

HOW TO CHANGE S3 CONSOLE GUI SUPERADMIN PASSWORD

1. In order to change superadmin password, run the following steps.
Remove the current superadmin credentials on all S3 Connector servers.
2. Set superadmin password.

REMOVE THE CURRENT SUPERADMIN CREDENTIALS ON ALL S3 CONNECTOR SERVERS

1. Log in as root on the supervisor.
2. Go to the S3 installer folder. Standard path is /srv/scality/s3/s3-offline/federation.
3. Set the ENV_DIR environment variable with the name of the configuration folder, that is stored in the env/ fonder. Standard name is s3config.
$ ENV_DIR=s3config
Run this command from the federation directory and list the IDs to delete.

$ ../repo/venv/bin/ansible -i env/${ENV_DIR}/inventory -m shell \
-a "sqlite3 {{env_host_data}}/scality-identisee{{ container_name_suffix|default("") }}/databases/identiseedb.sqlite \
\"select u.id,c.id from users as u,credentials as c where u.id=c.userid and u.type='superadmin';\"" runners_s3
md2-cluster1 | SUCCESS | rc=0 >>
1|2
md3-cluster1 | SUCCESS | rc=0 >>
1|2
md1-cluster1 | SUCCESS | rc=0 >>
1|2
md5-cluster1 | SUCCESS | rc=0 >>
1|2
md4-cluster1 | SUCCESS | rc=0 >>
1|2

4. The results of this command display “|” pairs for each server. In this example, it is “1|2” where of “1” and of “2”.
Remove the corresponding entries from the database.
Note If the results of the previous command are different on all servers, replace ‘*’ by hostname (md1-cluster1, md2-cluster1, etc.) and run the following commands for each server.

$ ../repo/venv/bin/ansible -i env/${ENV_DIR}/inventory -m shell \
-a "sqlite3 {{env_host_data}}/scality-identisee{{ container_name_suffix|default("") }}/databases/identiseedb.sqlite \
'delete from users where id=;'" '*'
$ ../repo/venv/bin/ansible -i env/${ENV_DIR}/inventory -m shell \
-a "sqlite3 {{env_host_data}}/scality-identisee{{ container_name_suffix|default("") }}/databases/identiseedb.sqlite \
'delete from credentials where id=;'" '*'

SET SUPERADMIN PASSWORD

Run this command from the federation directory.

# ./ansible-playbook -i env/${ENV_DIR}/inventory tooling-playbooks/create-superadmin-console-user.yml -e "ui_username=
ui_password="

If this does not solve your issues please get in touch with support

SAN FRANCISCO, USA

149 New Montgomery Street, Suite 607
San Francisco, CA, 94105
Email: sales.us@scality.com
Telephone: +1 (650) 356-8500
Fax: +1 (650) 356-8501
Toll Free: +1 (855) 722-5489


PARIS, FRANCE

11 rue Tronchet
75008 Paris, France
Email: sales.eu@scality.com
Telephone: +33 1 78 09 82 70


WASHINGTON, D.C., USA

43777 Central Station Drive, Suite 410
Ashburn, VA 20147, USA
Email: sales.us@scality.com
Toll Free: +1 (855) 722-5489

TOKYO, JAPAN

Otemachi Bldg. 4F, 1-6-1, Otemachi
Chiyoda-ku Tokyo, 100-0004 Japan
Email: sales.japan@scality.com
Telephone: +81-3-4405-5400


LONDON, UNITED KINGDOM

Quadrant House, Floor 6
4 Thomas More Square
London, United Kingdom, E1W 1YW
Email: sales.eu@scality.com
Telephone: +44 203 795 2434

Products

The most powerful data storage platform.

Protect, search and manage your data on any cloud.

RING

ON PREMISES, PRIVATE CLOUD STORAGE SOLUTION

ZENKO

DATA MANAGEMENT ACROSS
MULTIPLE CLOUDS

NAS ARCHIVER

TIER INACTIVE DATA FROM NAS TO SCALITY RING

Hardware Alliances

Delivering fully integrated solutions.

Learn More

Read about Scality data storage and management solutions.