QRadar · Engineering Guide

Recover a Lost Root Password

Recover a lost root password on IBM QRadar by booting into the RHEL emergency environment and resetting the password.

Introduction

This guide describes how to recover a lost root password on an IBM QRadar appliance.

IBM provides a root password recovery procedure for QRadar 7.3. This guide follows the same general recovery process while documenting the changes that were required to successfully perform the procedure on newer QRadar deployments.

Last Verified: IBM QRadar 7.5

The steps in this guide were last validated on QRadar 7.5. Although the underlying recovery process relies primarily on standard Red Hat Enterprise Linux recovery methods, newer QRadar releases may introduce changes to the boot menu or storage layout. Review the latest IBM documentation if you are deploying a newer version.

References

  • IBM Support: Reset Forgotten Root Password (QRadar 7.3)
    • https://www.ibm.com/support/pages/qradar-reset-forgotten-root-password

Boot into the Emergency Environment

  1. Reboot the appliance.

  2. When the GRUB boot menu appears, highlight the entry you want to boot and press e to edit the boot parameters.

    Note: Some older IBM documentation refers to a Factory Re-Install boot option. In some QRadar 7.5 environments, this option may not be available. If necessary, edit the standard operating system boot entry instead.

  3. Locate the line beginning with:

     linux
    
  4. Find the kernel parameter:

     ro
    
  5. Insert the following parameter immediately before ro:

     rd.break
    
  6. Boot using the modified parameters.

     Ctrl + X
    

Activate the Root Volume

Scan for available volume groups.

lvm vgscan

Activate the volume groups.

lvm vgchange -ay

Display the available logical volumes.

ls /dev/mapper

Create a temporary mount point.

mkdir -pv /tmp/root

Unmount the root logical volume if it is already mounted.

umount /dev/mapper/rootrhel-root

Note: Replace rootrhel-root with the appropriate logical volume name if your deployment uses a different naming convention.

Mount the root logical volume.

mount /dev/mapper/rootrhel-root /tmp/root

Prepare the Chroot Environment

Bind the required virtual file systems.

mount -o bind /sys /tmp/root/sys
mount -o bind /dev /tmp/root/dev
mount -o bind /proc /tmp/root/proc

Enter the installed operating system.

chroot /tmp/root

Reset the Password

Reset the root password.

passwd

To reset another local account, specify the username.

passwd <username>

Mount any remaining file systems.

mount -a -v

Exit the chroot environment.

exit

Reboot the appliance.

reboot

Verification

Allow the system to boot normally using the default boot entry.

Verify that:

  • The appliance boots successfully.
  • The modified boot parameters are no longer present.
  • The new root password works.
  • Any additional passwords that were reset authenticate successfully.

Additional Resources

  • IBM QRadar Support Documentation
  • IBM QRadar Administration Guide