Fedora Linux Support Community & Resources Center
  #1  
Old 4th July 2012, 12:58 PM
SnugNuts Offline
Registered User
 
Join Date: May 2012
Location: San Antonio
Posts: 6
windows_7chrome
Authentication failed @ login

I screwed up. I had my buddy help me with the installation for f16, and he didn't use my name, he used another name of someone else he was helping out. I looked up how to change your username, it said to edit the /etc/passwd file. I knew this was bad, I always heard, "never do this." Well I did it... I was running XBMC and it crashed on me, when I brought the server back up, I try to log in with both my username and the old username, and I get authentication failed, for both accounts. When I try to pull up a terminal (alt+ctrl+f2) I get a black screen with a box on the bottom, that is split in the middle, half yellow and half grey. Any idea on what I need to do?

---------- Post added 4th July 2012 at 06:58 AM ---------- Previous post was 3rd July 2012 at 11:29 PM ----------

Anyone help a noob out?
Reply With Quote
  #2  
Old 4th July 2012, 10:55 PM
sidebrnz Offline
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 64
Posts: 2,603
linuxfirefox
Re: Authentication failed @ login

At the login screen, switch to a virtual console with Ctrl-Alt-F2 and log in as root. (I presume you know the root password. If not, get it from your friend.) use the command userdel to remove your username. If you get an error message, try again with the other username:

userdel -f username

The -f tells it to remove the home directory even if it's also used by somebody else. (Just in case) Next you create a new account for yourself:

adduser username

Last, you need to create a password for the account:

passwd username

You will need to enter the password twice, exactly the same. Once you've done that, log out and try to log in with your username and password. If you've done everything right, you'll succeed. Log out again and use Ctrl-Alt-F8 to get back to your regular login screen and you should be able to log in as yourself.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #3  
Old 5th July 2012, 02:08 AM
SnugNuts Offline
Registered User
 
Join Date: May 2012
Location: San Antonio
Posts: 6
linuxsafari
Re: Authentication failed @ login

Quote:
Originally Posted by sidebrnz View Post
At the login screen, switch to a virtual console with Ctrl-Alt-F2 and log in as root. (I presume you know the root password. If not, get it from your friend.) use the command userdel to remove your username. If you get an error message, try again with the other username:

userdel -f username

The -f tells it to remove the home directory even if it's also used by somebody else. (Just in case) Next you create a new account for yourself:

adduser username

Last, you need to create a password for the account:

passwd username

You will need to enter the password twice, exactly the same. Once you've done that, log out and try to log in with your username and password. If you've done everything right, you'll succeed. Log out again and use Ctrl-Alt-F8 to get back to your regular login screen and you should be able to log in as yourself.
I can't get it to pull up the virt console though. When I ctrl alt f2 and a black screen comes up with a small box on the bottom left. I can take a pic of it when I get home

---------- Post added at 08:08 PM ---------- Previous post was at 05:02 PM ----------



One half is grey, one half is yellow. Can't do anything with it.
Reply With Quote
  #4  
Old 13th July 2012, 05:20 PM
robertdaleweir Offline
Registered User
 
Join Date: Oct 2005
Location: British Columbia, Canada
Posts: 420
linuxfirefox
Re: Authentication failed @ login

Quote:
Originally Posted by SnugNuts View Post
I screwed up. I had my buddy help me with the installation for f16, and he didn't use my name, he used another name of someone else he was helping out. I looked up how to change your username, it said to edit the /etc/passwd file. I knew this was bad, I always heard, "never do this." Well I did it... I was running XBMC and it crashed on me, when I brought the server back up, I try to log in with both my username and the old username, and I get authentication failed, for both accounts. When I try to pull up a terminal (alt+ctrl+f2) I get a black screen with a box on the bottom, that is split in the middle, half yellow and half grey. Any idea on what I need to do?

---------- Post added 4th July 2012 at 06:58 AM ---------- Previous post was 3rd July 2012 at 11:29 PM ----------

Anyone help a noob out?
Hi SnugNuts
Another way to rectify your problem would be to use, as root, the commands 'groupmod' and 'usermod' as follows.
Once you have logged in to your machine, with the unfortunately incorrect name, open a terminal and become 'root'. This is done by invoking <su -> in a X terminal. It will need your root password and hit enter.
Once you are in a terminal as root, shown by a # at the prompt, type in the following <init 3> and hit enter. This will leave the GUI session and put you into a console mode. You must login as <root> and again put in the root password and hit enter.
You should now have a console with a # and a prompt. At the prompt type the following and hit enter after each line. You must substitute your name where I have used 'newname' and the incorrect name where I use 'oldname'. The beauty of the following is that ALL settings and apps/settups are retained and you do not have to remove any users or whatever.
So at the prompt type 'groupmod -n newname oldname' and hit enter.
Then type 'usermod -l newname oldname' and hit enter. Note, that is a letter not a number.
Then type 'usermod -m -d /home/newname newname' and hit enter.
Next type 'init 6' and hit enter.
Please be advised that if you have 'autologin' enabled you MUST disable it before starting this procedure or you will not be able to login.
You should be brought back to your GUI and have a login screen. Use your newname and old password and log in. Now you can enter the Users and Groups app and change your Displayed name shown at the upper corner of the screen. Remember this is just an Displayed Name and is not your 'username'
This procedure, if followed precisely, will change any username and groupname to whatever you desire and maintain all permissions, ownership etc that was there for the original user.
Caution: Make sure that you type the exact code as written and wait for each command to finish before entering the next one.
YMMV. Enjoy...
__________________
Robert :)
Kernel 3.9.10-100.fc17.x86_64 GNOME 3.4.2
CPU AMD 955 Quad Core
MoBo Gigabyte MA785GM-UD2H-AM3 MicroATX
Memory 8 Gigs OCZ DDR3-1333 PC-10666

Last edited by robertdaleweir; 13th July 2012 at 05:25 PM.
Reply With Quote
Reply

Tags
authentication, failed, login

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to obtain authentication in F 15 Flemming Using Fedora 3 18th July 2011 04:28 AM
Authentication Failed when trying to login as user in GUI h8grip Using Fedora 2 19th September 2010 06:37 AM
freenx authentication failed abubin Using Fedora 0 9th March 2007 06:41 AM
Authentication Failed - why? Shaky Start Security and Privacy 5 21st August 2005 12:30 PM
authentication failed message veritas Using Fedora 1 17th February 2005 02:18 PM


Current GMT-time: 13:35 (Monday, 01-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat