I made a mistake and cannot log into my fedora (18) machine anymore. The system only has one user, when I was logged in as that user I locked that user such that it cannot create new processes and then I killed all processes for that user, also Xorg.
At the login screen, when I try to log in with user name and password, it cannot authenticate.
When I try to login in the command line (by pushing
ctr+alt+f1) and to login as root, it asks me for a password. The problem is that I have never set a root password.
In google I found information about the
init=/bin/bash trick, which means adding this line to the boot record in grub and then a bash starts. This works and I have a bash where I am logged in as root. However, when I try to use
passwd to give a password to root, I get a
Authentication token manipulation error. Unlocking the user account with
passwd -u username does not work either, because everything is a
read-only file system.
Adding another user did not work for me either, because I don't have the
I got a little bit further, I know now that I can avoid the read-only file system by using
rw init=/bin/bash in grub. If I then unlock with
passwd -u username, it tells me it was a success. I can also change the root password.
However, now, when I try to start fedora to get to the login screen, it does not even get there but gets stuck where it displays the fedora logo. I am able to switch to another tty where it prompts me for login. But when I try to log in as the user or as root with the new password, it fails.
Could anyone help me to get out of this mess?