Step1: Boot your server/VM/Machine into Recovery Mode:
- Restart your computer and wait for the GRUB bootloader screen to appear, use escape key to get the bootloader screen.
- Select the Fedora os as per the list you have installed, below example for your reference [DO NOT PRESS ENTER].
- NOW Press the “e” key to edit the boot options.
- Find the line starting with “linux” or “linux16” and append
rd.break enforcing=0
to the end of that line. OR - Append the line with rw init=/bin/bash
- Press Ctrl+X or F10 to boot with the modified options.
Step2: Next is to Remount the Filesystem in Read/Write Mode:
- After booting, you’ll be presented with a prompt. Enter the following commands:
- passwd