Trying to practice for the exam.
Set up a RHEL 7.5 VM on both V-Box and VMware.
I follow steps posted on Youtube...several versions... all with the same result.
When the box boots back up, none of the passwords work. Not root, not admin, not even my user password.
It's like they all got erased during the process but all I changed was root.
Also...can not find anywhere in the RH 124, or 134 material how to change root.
Any error messages you'd like to share? What YouTube videos are you referring to? Were you erasing /etc/shadow at any point, was that the instruction YouTube videos gave? Did you force SELinux to relabel newly edited file(s)?
If you truly have access to the RH134 material, you fill find the answer in Chapter 13, sections 3 (lesson) and 4 (practice lab).
This is known as "recoving the root password" -- but there is no "recover" about it, you'll be changing it.
It is basically a 6-step process:
...and wait until the system reboots. Now you can use the new root password.
When I searched on "password recovery rhel7" on Google, the very first YouTube video I found was 100% spot-on, "How to reset the root password on RHEL 7 and CentOS 7 - YouTube"