Hi, i am trying to reset root password follwed this guide: hhttps://docs.fedoraproject.org/en-US/quick-docs/reset-root-password/, on fedora VM (relase 41) for rescue mode the points mentioned in the guide are as follows:
- Select the boot entry you wish to edit with the arrow keys.
- Select the entry you wish to edit by pressing e .
- Use the arrow keys to go to select the line beginning with
linux
,linux16
, orlinuxefi
. - Go the the end of that line and include a space and the following
rw init=/bin/bash
. - Press Ctrl-x or F10 to boot the entry
- Run the command: passwd, You will be prompted to enter the new root password twice.
- Restore the SELinux context and permissions with: touch /.autorelabel
- Reboot the machine with: /sbin/reboot -f
i tried to do this points but its don’t work because after execute the VM reboot and i try to login with the root user, say to me password login incorrect. I specify that i follwed the guide step by step. Can someone help me figure out how to reset/recover the root password using the procedure from the bootloader menu? (I need for the Red Hat RHCSA exam)