Just had this happen to me yesterday… but SOLVED it. Here is how to solve it:
Some caveats so you don’t waste 5 hours like I did:
- After “rd.break” don’t forget to put “enforcing =0” . This is at the end of the Linux line. Followed by hitting “Ctl+X” this gets you into Start the Emergency mode scripting Shell.
From here on in you are in "switch_root:/# or some other 1 LINE command followed by ENTER. All the other individual commands are on a single line followed by ENTER This is followed by another line that starts with switch_root:/#. Don’t make my mistake of putting ALL the commands on the “Linux” line. It took me 5 hours to figure out the secret.
-
The next two lines deal with /sysroot. the 2nd line that begins switch_root:/# followed by chroot /sysroot. This allows you to CHANGE your ROOT Password. Now when you press ENTER you will be greeted by sh-4.4# where you will be see a request /statement for passwd root where you do your passwd changes. After you have updated your root passwd you will see another sh-4.4#
-
Type exit Press ENTER
-
Now you have to Make filesystem again read-only:
type mount -o remount,ro /sysroot … followed by ENTER -
Type exit followed by “ENTER”
-
NOW Login with your NEW PASSWORD!!
Now for some cleanup on aisle 6:
- Remove any residue entries and set SELinux enforcing mode. Don’t forget to reset enforcing 1
I can’t remember if there was an ENTER after each command or not – short memory from brain damage from the crash. This actually WORKS!! References found in these forums did not work, nor was there any reference that you needed and when to hit ENTER, or that you needed to first set enforcing=0 and later enforcing 1. OTOH this is a pretty well laid out ARTICLE on how to reset your password – READ IT!!! – Don’t take my down and dirty summation You still need to be eagle eyed to discern that A) Everything is NOT on the Linux line B) That you need to hit ENTER to force New Line wherein you enter your NEXT command. Like I said, it ONLY took me 5 hours to get back my root password.
D’ Cat