This is an old revision of the document!
Interrupt The Boot Process In Order To Gain Access To A System
General Information
About this page/how-to/script.
Recover the root user's password
- Interrupt boot process at grub menu
- Press “e” to edit the boot entry
- Navigate to the “linux16” kernel entry
- Append “rd.break”
- Ctrl+x to continue boot process, it will stop within the initramfs shell
- Remount sysroot file system as read/write: mount -o remount,rw /sysroot
- Change root to that root file system: chroot /sysroot
- Change root password: passwd
- Have system relabel at boot: touch /.autorelabel
- If this is not done, SELinux will prevent the /etc/passwd file from being changed
- Exit the chroot jail: exit
- Exit the initramfs shell: exit
- System will reboot after a delay