LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-18-2004, 01:08 PM   #1
hypersonic5
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
I screwed up user authentication in Ubuntu


Ubuntu was working fine until I went into the Users and Groups dialog and changed my username and password. Now I am getting authentication errors everywhere. For example, if I want to use apt-get sudo, it tells my that my username is not in the sudoers list. Also, I can't get back into the Users and Groups dialog, nor a million other things that require a password. Can this be fixed? Also, how would I be able to log in as root in Ubuntu?

Thanks.
 
Old 12-18-2004, 02:27 PM   #2
blueplazma
Member
 
Registered: Jun 2002
Distribution: Debian/Ubuntu
Posts: 56

Rep: Reputation: 15
You may be able to boot up into single-user mode and do the repairs from there. Try rebooting and selecting the recovery mode kernel from the GRUB menu. If that doesn't work you may be able to use a livecd like Knoppix to boot up and do the repairs. To enable the root user, you need to edit /etc/passwd. If I remember, the shell and/or password are disabled. If you google, it should come right up, but I don't think you'll need it if you can get in and change your username back somehow. You could also add your new username to /etc/sudoers.
 
Old 12-18-2004, 06:54 PM   #3
hypersonic5
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Original Poster
Rep: Reputation: 0
I logged into the recovery mode and as root typed in usermod -l newname oldname and was able to change my username back to what it was before. Everything works fine now, thanks!
 
Old 12-19-2004, 10:05 AM   #4
blueplazma
Member
 
Registered: Jun 2002
Distribution: Debian/Ubuntu
Posts: 56

Rep: Reputation: 15
Excellent. Enjoy Ubuntu! I love it, personally.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu screwed up my second Windows (/dev/hda5 HPFS/NTFS) partition howyen Ubuntu 5 04-12-2005 12:11 PM
User Authentication spud Linux - Newbie 1 04-03-2005 03:43 PM
X Server screwed up for one user Tenover Linux - Newbie 3 01-31-2005 04:36 AM
NT user authentication hzhuang Linux - Security 2 08-11-2003 06:39 AM
Squid proxy with user authentication and user rights duvanhorn Linux - Networking 0 08-07-2003 03:40 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration