RHCSA-7: EX-200: Interrupt the boot process in order to gain access to a system

By | October 9, 2018

Reboot the machine
interrupt the boot processor
Write this at the end of the line that start with linux16 /vmlinuz-******

rd.break

Press ctrl + x

ctrl+x

Machine will start with switch_root prompt

switch_root:/#
switch_root:/# findmnt

Make the file sytem Read/Write

switch_root:/# mount -o remount,rw /sysroot

change root into sysroot

switch_root:/#chroot /sysroot

Now change the password

#passwd 'newpassword'

Create emtpy autorelabel file to set selinux labelling

#touch /.autorelabel

Now reboot the machine.

#ctrl+d
#ctrl+d

Now login to the system with new password, that you set.

Share This Post

Leave a Reply

Your email address will not be published. Required fields are marked *