If we have a CentOS 7 or Red Hat Enterprise Linux (RHEL 7) with a selinux in enforced mode, the password resetting procedure need to be modified.
- From the Grub menu type “e” in order to edit the default menu item.
- Find the line that starts with “linux16”. At the end of this line append the text “rd.break”
- touch /.autorelabel
- Type exit once
- type reboot