LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 04-21-2013, 03:17 PM   #1
nmc05006
LQ Newbie
 
Registered: Apr 2013
Posts: 5

Rep: Reputation: Disabled
I'm using Ubuntu and I changed my password in the recovery mode root menu ...


I am using Ubuntu 12.04.2 and changed my password using
mount -rw -o remount /
passwd USERNAME

and now when I try to sign on the logon screen just reappears time after time even when I enter my password correctly

Last edited by nmc05006; 04-21-2013 at 03:19 PM.
 
Old 04-21-2013, 03:25 PM   #2
angryfirelord
Member
 
Registered: Dec 2005
Posts: 506

Rep: Reputation: 61
Are you using the LiveCD to change your password or are you changing the password of a user while logged in as root?
 
Old 04-21-2013, 03:28 PM   #3
nmc05006
LQ Newbie
 
Registered: Apr 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
I am going to guess the root because I was logged in using the recovery mode
 
Old 04-21-2013, 03:29 PM   #4
nmc05006
LQ Newbie
 
Registered: Apr 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
The following it the directions I used


You should now see a root prompt, something like this:
root@ubuntu:~#

At this stage it is possible you have a read-only filesystem. You have to remount it with write permissions:
mount -rw -o remount /

Now we can set the user's password with the passwd command. (In this example I will use jorge as the example, you need to substitute whatever the user's username is):
passwd jorge
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@ubuntu:~#

Type in what you want the new password to be at the prompt. After it's successful reboot the machine and the user will be able to log in with their new password.
 
Old 04-21-2013, 03:57 PM   #5
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 495

Rep: Reputation: 135Reputation: 135
In post #1 you asked the question, and in post #4 you answered your question. I'm confused.
 
Old 04-21-2013, 04:03 PM   #6
nmc05006
LQ Newbie
 
Registered: Apr 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
That is the code I used to changed my password and now I can't log in. It just keeps having me type in my password again and again on the login in screen
 
Old 04-21-2013, 04:35 PM   #7
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 495

Rep: Reputation: 135Reputation: 135
OK. i just tried in virtualbox, in recovery mode, after you change password, you should enter command 'sync' to make password permanent.

Source: Reset Your Forgotten Ubuntu Password in 2 Minutes or Less
 
Old 04-21-2013, 07:08 PM   #8
nmc05006
LQ Newbie
 
Registered: Apr 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks, but even after I did that it still lets me type in my correct password and hit enter the screen flashes to a black screen with writing on it, then back to the log in screen. Its just a cycle that keeps going on.
 
Old 04-24-2013, 09:55 AM   #9
angryfirelord
Member
 
Registered: Dec 2005
Posts: 506

Rep: Reputation: 61
If you go to a virtual console instead, will it let you log on?
 
1 members found this post helpful.
  


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
rhel6 can't change password in recovery mode go3mon Linux - Enterprise 2 07-18-2011 09:20 AM
asking for password in recovery mode jone kim Linux - General 3 09-27-2010 12:08 PM
[SOLVED] Ubuntu recovery mode asks for root password Changes Linux - Newbie 15 10-12-2009 04:48 AM
Password Recovery in Edubuntu 7.04 - In Terminal, Root Login : su , password : ????? farhannaeem13 Linux - Security 3 11-30-2007 09:59 AM
Password Recovery and Single User mode natso Linux - Newbie 4 05-28-2002 04:59 AM


All times are GMT -5. The time now is 07:15 PM.

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