How to change/reset the root password using 'init=/bin/sh'?
Issue
- When using
rd.break
to change theroot
password, the system goes into Emergency mode and asks for theroot
password orCtrl+D
to continue.
Environment
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 7
- dracut
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.