You need to get into Single Mode.
To do this, when loading the OS, press the "E" key.
Find the “ro” parameter at the end of this line and replace it with the “rw” parameter. Add a new parameter “init=/bin/bash” separated by a space.
Then, on the command line, run the following commands one by one:
passwd root
sync
reboot –f