LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need login to Fedora 15 from terminal, cannot log in to GUI because of modification (https://www.linuxquestions.org/questions/linux-newbie-8/need-login-to-fedora-15-from-terminal-cannot-log-in-to-gui-because-of-modification-893325/)

x0a 07-23-2011 09:16 AM

Need login to Fedora 15 from terminal, cannot log in to GUI because of modification
 
So I made a huge mistake following advice from a friend on how to change my username on Fedora.

I changed my username in /etc/shadow and /etc/passwd, renamed my user folder in /home to the same username and then saved everything and restarted.

When I got to the login screen, it still had my old username there. I tried logging into it but I received an error. So I clicked OK on an error box after the screen turned black and went back to the login screen and clicked "other". I then tried to log into the new username but it had the same error (the error included my old home folder). I also tried "root", but it gave me an authentication error.

I want to log in from a terminal or something as root in order to fix it. But how? I can't access my accounts. I tried accessing it from Windows but apparently a LVM partition is inaccessible.

What should I do?

repo 07-23-2011 09:26 AM

Welcome to LQ
Quote:

but it had the same error (the error included my old home folder).
Which error?
Quote:

I want to log in from a terminal or something as root in order to fix it.
Press
Code:

CTRL_ALT_F1 or F2 till F6
and login as root

Kind regards

x0a 07-23-2011 09:37 AM

That was fast! Thank you very much.

chrism01 07-24-2011 06:28 PM

Did you use usermod http://linux.die.net/man/8/usermod ?
That's better than doing it manually.


All times are GMT -5. The time now is 12:49 AM.