After reboot my centos 8 (after switch back from centos stream) and login is not working. I can not login, it always appears "login incorect".
I followed the below procedure:
Code: Select all
1 – In the boot grub menu select option to edit.
2 – Select Option 1 to edit (e).
3 – Go to the line of Linux 16 and change ro with rw init=/sysroot/bin/sh.
4 – Now press Control+x to start on single user mode.
5 – Now access the system with this command. >> chroot /sysroot
6 – Reset the password. with >> passwd root
7 – Update selinux information with >> touch /.autorelabel
8 – Exit chroot >> exit
9 – Reboot your system >> reboot
Second - passwd root is not working - permission denied.
Please help me to log-in my system.