Hello,
For security reasons, the root account locked on Kaisen.
To unlock it please follow :
Tutorial: Chroot into a Linux System with LVM and Optional Encryption
Prerequisites:
- A Linux system installed on an LVM (Logical Volume Management) volume.
- A live CD or USB with a Linux distribution to access the system in live mode.
Step 1: Boot from the Live CD/USB
Insert the live CD/USB and boot the computer from this media. Make sure to select the appropriate option to boot in live mode.
Step 2: Open a Terminal
Once in the live environment, open a terminal.
Step 3: Determine mount sources
Identify the volume group (VG) and logical volumes (LV) of your Linux installation using the following command:
bashCopy code
lsblk
You shoukd have something similar :
bashCopy code
sda 8:0 0 476.9G 0 disk
├─sda1 8:1 0 121M 0 part /boot/efi
├─sda2 8:2 0 488M 0 part /boot
└─sda3 8:3 0 476.3G 0 part
└─sda3_crypt 254:0 0 476.3G 0 crypt
├─nikilab--vg-root 254:1 0 37.3G 0 lvm /snap
│ /
└─nikilab--vg-home 254:2 0 439G 0 lvm /home
Step 4: Mount the Root File System
Mount the logical volume corresponding to your root file system in the /mnt
directory. Replace VG_NAME
and LV_NAME
with the appropriate names. Do note forget your other partitions lile /boot and EFI
bashCopy code
sudo mount /dev/VG_NAME/LV_NAME /mnt
sudo mount /dev/sda2 /mnt/boot
sudo mount /dev/sda1 /mnt/boot/efi
Step 5: Mount System Directories
Mount the necessary special filesystems in the /mnt
directory. Execute the following commands:
bashCopy code
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo mount --bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars
Step 6 (Optional): Decrypt the LVM
If your LVM is encrypted, use the following command to decrypt . Replace LV_NAME
with the name of the logical volume to be encrypted.
bashCopy code
sudo cryptsetup luksOpen /dev/VG_NAME/LV_NAME cryptroot
Step 8: Chroot into the Installed System
Chroot into the installed system with the mounted system directories:
bashCopy code
sudo chroot /mnt /bin/bash
Step 9: Unlock root
bashCopy code
passwd -u root
Step 10: Exit the Chroot
Once finished, exit the chroot and unmount the mounted filesystems:
bashCopy code
exit
sudo umount -R /mnt