LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2011, 10:16 AM   #1
x0a
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Rep: Reputation: Disabled
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?

Last edited by x0a; 07-23-2011 at 10:36 AM.
 
Old 07-23-2011, 10:26 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
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
 
1 members found this post helpful.
Old 07-23-2011, 10:37 AM   #3
x0a
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Smile

That was fast! Thank you very much.
 
Old 07-24-2011, 07:28 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
script to open pseudo-terminal at user login to GUI: ubuntu (kiwi) 10.04 zev42 Programming 1 12-07-2010 11:39 AM
script to open pseudo-terminal at user login to GUI: ubuntu (kiwi) 10.04 zev42 Linux - Newbie 2 11-26-2010 11:35 PM
script to open pseudo-terminal at user login to GUI: ubuntu (kiwi) 10.04 zev42 Linux - Newbie 4 11-26-2010 11:34 PM
way to log on to wireless network in terminal (no GUI) mode newellrp1 Ubuntu 2 05-21-2009 04:15 PM
Login Problem in GUI terminal sushmi Linux - Newbie 8 05-29-2007 07:12 AM


All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration