I have a CentOS 7 image on my local machine that I want to allow login as root. This is going to be a system dedicated for testing.
I initially tried using rescue mode and added kernel param "systemd.unit=emergency.target" but it says root login is locked.
So I start /bin/bash instead. I see root in /etc/shadow is locked using "!!". So I run passwd root and assign it a password. However, I am still unable to login as root. It keeps telling me password incorrect (I'm sure password is correct). Is there somewhere else I overlooked?
I am logging in via console, not using SSH.