we have a virtual machine, based on the Check_MK virt1 in version 1.4.4
The appliance was created and set up by our colleague, who is unfortunately now seriously ill. Unfortunately we have no possibility to ask him for the access data.
We have full access to the hard disks and can also start the virtual machine with a boot CD such as Grml and mount the 3 hard disks contained in the appliance.
Unfortunately we don’t know exactly where and how we can recreate the password hashes so that we can log in again afterwards.
We have already tried the following unsuccessfully with the boot CD Grml:
- sudo mkdir /media/sda1
- sudo mkdir /media/sdb1
- sudo mkdir /media/sdb2
- mount /dev/sda1 /media/sda1
- mount /dev/sdb1 /media/sdb1
- mount /dev/sdb2 /media/sdb2
Try 1 - Reset the root password of partition 1:
- sudo chroot /media/sda1
Try 2 - Reset site password:
- cat /media/sdb2/sites/OUR_SITE_NAME/etc/htpasswd
- /media/sda1/usr/bin/htpasswd -d /media/sdb2/sites/OUR_SITE_NAME/etc/htpasswd cmkadmin
Although both attempts resulted in the password hashes in /media/sda1/etc/shadow and /media/sdb2/sites/OUR_SITE_NAME/etc/htpasswd being changed, but it was still not possible to log in via console (device password) or via the web interface (only password query without user name).
Who can help us to change the passwords correctly or at worst export the configuration of the appliance and import it into a new appliance.
Thanks for your help
Falk v. Broen