linux_wiki:interrupt_the_boot_process_in_order_to_gain_access_to_a_system

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

  1. Interrupt boot process at grub menu
  2. Press “e” to edit the boot entry
  3. Navigate to the “linux16” kernel entry
  4. Append “rd.break”
  5. Ctrl+x to continue boot process, it will stop within the initramfs shell
  6. Remount sysroot file system as read/write: mount -o remount,rw /sysroot
  7. Change root to that root file system: chroot /sysroot
  8. Change root password: passwd
  9. Have system relabel at boot: touch /.autorelabel
    1. If this is not done, SELinux will prevent the /etc/passwd file from being changed
  10. Exit the chroot jail: exit
  11. Exit the initramfs shell: exit
    1. System will reboot after a delay

  • linux_wiki/interrupt_the_boot_process_in_order_to_gain_access_to_a_system.1456799026.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)