Hi all,
We ran exactly into this problem on Tuesday and we seem to have found a solution to reset the underlying linux "admin@local" password.
We were unable to use our ActiveDirectory credentials for logging in to the LMI after a certificate change on our ActiveDirectory (we did import the new certificate beforehand, but forgot to import the new intermediary and root certs)
So we had to login with the local admin to fix the situation, but unfortunately, the password stored in our password manager was incorrect.
The solution suggested (and since validated) by one of our linux administrators was to boot the VM on a LiveCD, mount the isam filesystem, chroot on it and then manually change the password. We then booted the VM normally and where able to login to the LMI and via SSH with admin@local and its new password.
This solution was used on a virtual appliance, I don't know if it would have worked on a hardware appliance (that could have disk encryption enabled by default)
Anyway, if somebody runs into the same issue in the future, this solution could help him save a few hours :)
------------------------------
André Leruitte
------------------------------
Original Message:
Sent: Wed March 22, 2023 12:17 PM
From: Matt Jenkins
Subject: How to recover admin password
Yes but that would require a significant outage on the virtual appliances in question. Virtual appliance builds are complicated and lengthy in the environments (without going into a lot of detail). So we try to avoid them at all costs (hence why we have been moving more towards containerization).
One thing I did wonder, however, is that in the containers the admin password is now stored in the snapshot (I forget which v10 release this happened in). This was done so that the admin password that is exposed via the container environment variable (and hence available to anyone with access to the container environment) is only used during the initial build of the configuration container. I had wondered if this change of storing the admin password in the snapshot may have made it into the virtual appliances, since the codebases are similar. I assume not, however, but honestly I haven't tried to take a snapshot, change the admin password, and restore the snapshot to see if the password changes back in newer versions.
------------------------------
Matt Jenkins
Original Message:
Sent: Wed March 22, 2023 10:59 AM
From: José Pina Coelho
Subject: How to recover admin password
If the snapshot contains everything you need, would the following work ?
- Take a snapshot and store it outside (media/network server)
- Factory reset the appliance
- Set the initial admin password
- Restore the snapshot
------------------------------
José Pina Coelho
IT Specialist at Kyndryl
Original Message:
Sent: Tue March 21, 2023 05:18 PM
From: Scott Exton
Subject: How to recover admin password
Matt,
Unfortunately I don't believe that it is possible to change the admin password without knowing the current admin password. Other users have permission to change the admin password, but the system still requires the current password to be supplied before it will allow a new password to be set.
I hope that this helps.
Scott A. Exton
Senior Software Engineer
Chief Programmer - IBM Security Verify Access
IBM Master Inventor
Original Message:
Sent: 3/21/2023 4:47:00 PM
From: Matt Jenkins
Subject: RE: How to recover admin password
Hjacking an old thread... Does anyone know if this has changed in the several years ISVA has matured? If the admin@local on a virtual appliance is lost, but we can still login as a global administrator user (either via LDAP authentication or via local user account), is it possible to update the local administrator password using admin_cfg or other REST API call? Thanks!
------------------------------
Matt Jenkins
Original Message:
Sent: Sat September 26, 2020 10:40 AM
From: Jon Harry
Subject: How to recover admin password
Hi Joao,
*** Edited to correct original answer ***
There is no "backdoor" for changing the Admin password without knowing the existing password. . The admin user is an operating system user in the underlying Linux platform and so you need to have the current password in order to change it. There is no access to root user that could perform a password reset.
The only option is to rebuild the VM. If you have a snapshot from the system, you can also potentially restore this to a new appliance. This is because the admin pw is not part of the snapshot so the password from the newly build appliance will remain.
https://www.ibm.com/support/knowledgecenter/en/SSPREK_9.0.7/com.ibm.isam.doc/admin/task/alps_managing_snapshots.html
Jon.
------------------------------
Jon Harry
Consulting IT Security Specialist
IBM
Original Message:
Sent: Sat September 26, 2020 05:31 AM
From: Joao Goncalves
Subject: How to recover admin password
Although I do not have this issue, I've been looking everywhere for an answer, just in case...
If for any reason, I forget the admin password, how do I reset it?
------------------------------
Joao Goncalves
Pyxis, Lda.
Sintra
+351 91 721 4994
------------------------------