Forgot root password on Fedora – How to change it

Start computer and select Fedora on GRUB menu. Press E key to edit parameters Select line starting with kernel and press E again to enter edit mode Append init 1 or S at end of line and press Enter key. Press b key to boot into Single user mode. At prompt, type passwd and change the root password