Hi everyone, I’m Italian and I apologize in advance for my approximate English, I’m new to the forum and I’ve been studying Centos for a few months, for the RHCSA exam.
In the laptop I have a dual-boot Centos + Fedora29, and yesterday the Fedora login didn’t recognize both passwords, both of the Administrator User and Root, so I looked (from Centos) at the Fedora / etc / shadow file:
# cat /media/Fedora29/etc/shadow
and strangely on first line I have found :
root : ! : : 0 : 99999 : 7 : : :
I know a double “!!” means empty password, but a single “!” on the space that should contain the password what would it mean? I haven’t found anything on the web.
Anyway I restarted and tried to reset the passwords like this:
- I typed E in correspondence with the Fedora entry in grub
- I replace the string ‘rhgb quiet’ with ‘rd.break enforcing = 0’
- I give a Ctrl-X
- It gives me access to the root terminal and I give in sequence:
# mount –o remount, rw /sysroot
# chroot /sysroot
- Then I change both passwords
# passwd
# passwd alex
- then exit -exit
However, upon rebooting, Fedora will hang on this screen:
Could it be recoverable?
I have nothing important there so I can also try dangerous maneuvers.
Thanks in advance