Het is me gelukt door de volgende beschrijving te volgen:
How to reset the root password in Rescue Mode
While booting the system, the GRUB2 menu will be displayed. To boot the system into rescue mode using bash follow these steps:
1. Select the boot entry you wish to edit with the arrow keys.
2. Select the entry you wish to edit by pressing e.
3. Use the arrow keys to go to select the line beginning with linux, linux16, or linuxefi.
4. Go the the end of that line and include a space and the following rw init=/bin/bash.
If your disk is encrypted, you may need to add plymouth.enable=0
1. Press Ctrl+X or F10 to boot the entry
2. Run the command:
3. passwd
· You will be prompted to enter the new root password twice.
You can also reset a non-root user password using the same command if you specify passwd <username>.
· Reboot the machine with:
· /sbin/reboot -f
1. As the boot (GRUB) menu appears (same as the first step), again select the boot entry you want to use, press e, and add the autorelabel=1 option to the end of the command line. This will temporarily set SELinux in permissive mode (instead of the standard enforcing mode), which will allow the relabeling process to proceed, as well as trigger the relabeling process.
2. Then, boot the modified entry with Ctrl+X or F10.
The system may take a moment to boot while SELinux relabels its permissions on the filesystem. If you see the Plymouth boot screen you can press the ESC key on your keyboard to view the SELinux progress.
Once it is complete, your system is ready and your password has been successfully changed.