Mysteriously, on our public SSH server, root user is now showing up as qroot. All the files owned by root are now owned by qroot.
id qroot shows qroot is UID 0
/etc/passwd file is owned by qroot
/etc/shadow is readable only by qroot
su - says su: user root does not exist
su qroot says password is wrong (probably because shadow file mismatches)
What can I do to recover root user?
Fedora 14, plain /etc/passwd file based auth.
getent passwd roottells you.sudoinstalled? and configured to allow you to get a shell or runsudo vipwor similar? if so, then do that. Similarly, if you have an~root/.ssh/authorized_keysset up to allow password-less root access you canssh qroot@hostnameand edit/etc/passwd. Otherwise, your best bet option would be to reboot to a rescue CD/USB-stick, mount the rootfs RW, and edit the /etc/passwd file to changeqrootback toroot.