--- OEL7 Single Mode or #---
https://www.thegeekdiary.com/centos-rhel-7-reset-root-password/
Single User
Stop boot process at GRUB menu
Hightlight the kernel to boot single user (you will need the root password)
type e
scroll down to linux16
at the end of the line add single
Ctrl x
Boot to a #
https://www.tecmint.com/boot-into-single-user-mode-in-centos-7/
Stop boot process at GRUB menu
Hightlight the kernel to boot single user (you will need the root password)
type e
scroll down to linux16
A string rw init=/sysroot/bin/sh needs to placed in the location (after root=<long string>in the image below.
Example ...
A BU OEL7 Example
# mount -o remount,rw /sysroot
# chroot /sysroot/
Do what you need to do, often change the root password
# passwd root
# touch /.autorelabel
# sync
Reboot when finished.
# reboot -f
