RHCSA Module 115: NO SHUFFLE Regaining System Access questions and 100% correct answers
1. Boot/reboot system 2. Highlight kernel and press 'e' for edit 3. Find vmlinuz line and remove console information and rhgb to prevent graphical boot 4. Where rhgb was on the vmlinuz line, add "" 5. Press ctrl+x to boot that kernel with the changes made 6. mount -o remount,rw /sysroot 7. chroot /sysroot 8. passwd root 9. Enter new root password 10. touch /.autorelabel 11. Run 'exit' until all shells are exited - correct answer List ALL steps needed in order to recover the root password (hint: As written, there are 11) on RHEL 7 specifically. switch_root:/# Just knowing "switch root" is sufficient for no star - correct answer If you have properly entered the emergency mode shell via , what will your prompt be? sh-4.2# The number isn't important. Knowing "sh" is sufficient for no star. - correct answer Once you have properly chrooted to sysroot, what will your prompt be (approximately)? 1. Boot/reboot system 2. Highlight kernel and press 'e' for edit 3. Find vmlinuz line and change "ro" to "rw init=/sysroot/bin/sh" 4. Press ctrl+x to boot that kernel with the changes made 5. chroot /sysroot 6. passwd root 7. Enter new root password 8. touch /.autorelabel 9. Run 'exit' to get out of chroot 10. systemctl reboot - correct answer List ALL steps needed in order to recover the root password (hint: As written, there are 11) on CentOS 7 specifically.
Document information
- Uploaded on
- May 8, 2024
- Number of pages
- 3
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers