Differences
This shows you the differences between two versions of the page.
linux_wiki:interrupt_the_boot_process_in_order_to_gain_access_to_a_system [2016/03/01 22:22] billdozor |
linux_wiki:interrupt_the_boot_process_in_order_to_gain_access_to_a_system [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Interrupt The Boot Process In Order To Gain Access To A System ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | **If you cannot perform this procedure, you will fail the entire exam**. | ||
- | |||
- | ---- | ||
- | |||
- | Recover the root user's password | ||
- | - Interrupt boot process at grub menu (move an arrow key up or down to stop the grub boot countdown) | ||
- | - Press " | ||
- | - Navigate to the line starting with " | ||
- | - Append to the end of the kernel entry (Ctrl+e to go to the end of the line)< | ||
- | - rd.break => stops early in the boot process (when initramfs is in memory and has not mounted the root file system as rw yet) | ||
- | - enforcing=0 => set SELinux to permissive mode | ||
- | - Ctrl+x to continue boot process, it will stop within the initramfs shell | ||
- | - Remount the sysroot file system as read/ | ||
- | - Change root to that root file system< | ||
- | - Change root password< | ||
- | - Exit the chroot jail and initramfs shell< | ||
- | switch_root:/# | ||
- | - The system will continue to boot | ||
- | - Login as root with the new password | ||
- | - Restore SELinux file context to / | ||
- | - Set SELinux to enforcing again< | ||
- | |||
- | ---- | ||