Pages

Sunday, May 6, 2012

Recover Login Password of Ubuntu 12.04

After my first installation of Ubuntu 12.04, I forgot my login password and need to recover it.

To recover it you need to follow these steps:

1. Boot your computer.

2. When you get the grub menu, select option with recover as shown in figure.

Ubuntu 12.04 : Grub Menu
3. This will take you to recovery menu. In recovery menu select option "drop to root shell" as shown in figure.

Ubuntu 12.04 : Recovery Menu



4. A shell prompt will be displayed at the bottom of the screen with root as username. To change the password of particular user say naveen
type:

       passwd naveen


5. The above command will ask you to enter your new password and retype password. Type your new password.

6. You might get "Authentication Manipulation error". If you get this error then you need to type :
     mount -rw -o remount /
    And again follow step 4 and 5.






97 comments:

  1. you forgot the / at the end of step 6.
    mount -rw -o remount /

    ReplyDelete
    Replies
    1. Ah typo

      Thanks for the correction

      Delete
  2. Thank you. Than normal Linux users are vulnerable to this method. How can we secure this so no one can take the same steps.

    ReplyDelete
  3. the default password for root (username)(root) (passwd)(password)(rt)is not working for me plz help.

    ReplyDelete
  4. same thing happen to me, the problem is, i cannot access the grub menu..when i boot ubuntu it sends me straight to my desktop..no grub menu. how can i get to the grub menu.

    ReplyDelete
  5. You can get your grub menu by re-installing it. use this link http://naveenubuntu.blogspot.in/2011/01/restoring-grub2mbr.html

    ReplyDelete
  6. thanks for the suggestion..

    ReplyDelete
  7. I tried it but it didnt work

    ReplyDelete
    Replies
    1. when u start up the computer press shift nad hold it till grub menu appears

      Delete
  8. http://www.howtogeek.com/howto/linux/reset-your-ubuntu-password-easily-from-the-live-cd/

    Another option to change root password from a live CD for those bypassing the grub boot menu. For those who are concerned about physical security access, you are offered to encrypt your home folder on installation. Changing the password with physical access to the machine will leave nothing but gibberish for the user without the exact and original password as noted here.

    http://ubuntuforums.org/showthread.php?t=1534704
    As is readily seen, even knowing the original password can be devastating in attempting to recover data in this situation. Add a separate user account for others who are allowed access to the computer is a best practice to prevent someone with physical access (room-mate) from attempting to be an idiot just to get on facebook.

    ReplyDelete
  9. Can you explain the last command please?? I'll be really thankfull :)
    What does -rw and -o means and how does remounting helps in changing the password??

    ReplyDelete
    Replies
    1. "-rw" : Mount the filesystem read/write. This is the default
      "-o" : means enable options

      Delete
    2. Will remount creates any problem to the existing files in Ubuntu.??

      Delete
  10. yes

    mount / -rw -o remount /
    and then

    passwd user

    ReplyDelete
  11. I successfully reset the root password thanks mate!!!

    ReplyDelete
  12. I tried this but it won't let me type a new password

    ReplyDelete
  13. to enter in root it is asking root passwd even if press at "root drop shell prompt"

    ReplyDelete
  14. to enter in root it is asking root passwd even if press at "root drop shell prompt"

    ReplyDelete
    Replies
    1. hey i'm Yoro and i get the same pb and the worse is i did not know the root password and even i tried to follow some instruction gave here,my keyboard does not repond when i typed,, it's like is blocked or frozen.I don't know what to do know. I read in the down that someone said that the command has perhaps being erase, iif so how could i rewrite back ?
      Thank you

      Delete
  15. Hi thankyou its working fine.

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. @naveen Hey thanks bro :) Its really helpful :)

    ReplyDelete
  18. It's still giving token manipulate error !

    ReplyDelete
  19. I allways get an option list when I typ: passwd Peter Mortier
    If I typ passwd without mijn account name I get the question to typ my new password, but always getting the same answer. that authentification is not good good and password not changed...

    Heeeelp... :-)

    ReplyDelete
    Replies
    1. Your username is not Peter Mortier but one without spaces and often all lowercase.

      If you have used the original installation to create your user account if automatically suggest your firstname in lowercase as username - in your case peter.

      So try this command instead:

      passwd peter

      If is still the wrong username then enter this command which will show the username for every user who have Peter within their fullname:

      grep -i Peter /etc/passwd | cut -f1 -d:

      The command takes all the lines in the file /etc/passwd which contains Peter in both lower and upper case (the option -i is the ignore case option) and cut the lines so only the first field (-f1) ahead of the delimiter : (-d:) is shown.

      The most enjoyable greetings

      Delete
  20. I followed these directions and received the message "password updated successfully." However, the reason I was doing this is that I had enabled "automatic login" and now when I look at my account information, it shows Password: none. I am unable to authenticate to add software, install updates or disable auto login.
    Why does my account still show no password when I seem to have updated it successfully?
    Help!

    ReplyDelete
  21. I have the same problem as Anonymous. I enabled automatic login and now I can't run updates or anything with my password.

    ReplyDelete
  22. I fixed it from terminal. Changed password there and fixed the problem. Not sure how or why it happened.

    ReplyDelete
  23. I have followed the instructions above, but when i tried to use the "mount -rw -o remount/" it did not solve the error the next time i tried, is there a reason for this?

    ReplyDelete
    Replies
    1. you missed a space after "remount" and before the "/" character.

      Delete
  24. in shell i have updated a user's login password being root. It show password updated successfully. But if i tries to login with the new password(entered correctly , no mistake in that) it won,t let me to login as that user. what could be the reason and where i can check these details.

    ReplyDelete
  25. Thanks. It was of great help....

    ReplyDelete
  26. James McCombe,

    You missed a space character after "remount".

    ReplyDelete
    Replies
    1. I don't think so. Space is already there between remount and /.

      Delete
  27. If you got an authenticate error even you entered the mount command its because you forget a space between "remount" and "/"

    ReplyDelete
  28. Can you add that if you dont get the grub menu to hold down the left shift key when the system completes post but prior to loading the OS.

    ReplyDelete
  29. when i get to the "Enter new UNIX password:" command, it doesnt let me enter a password

    ReplyDelete
    Replies
    1. me too im desperate i need help with that i have 12.04 pleaseeee help

      Delete
  30. I successfully changed the password but cant login with the changed password

    ReplyDelete
  31. Same here: I still cannot login even after a successful change of the password! There is not even the usual red incorrect password warning over the text field. The login prompt momentarily disappears as if I'm about to login OK, a black screen with commands appears for 1 or 2 seconds and then, unfortunately, I'm once more redirected at the login prompt again (!!!) This is driving me nuts, cause I tried it several times, with different pwd lenghts and complexities, but to no avail... Any ideas?! Thanks in advance!!

    ReplyDelete
    Replies
    1. same here!!
      naveen (or anyone else) pl help

      Delete
  32. Manipulation error!

    ReplyDelete
  33. Nevermind - I see step 6!!

    ReplyDelete
  34. with ubuntu desktop 12.10.... tried all the solutions above (even remounting) gives same error 'authentication token error'
    pl help

    ReplyDelete
  35. k. done! partially!
    root shell says : password changed successfully.
    but can not now login with new password!!

    ReplyDelete
  36. i entered in root shell after changing the password again!
    this time (it was 1st time) system asked root password. i typed the passwd i changed. it accepted!! but not working with admin log in!!1 pl help

    ReplyDelete
  37. hello when i get to the step write your new passwd i can't tyoe it i'm deseprate please help me my keyboard works fine butwhen i get to that step only enter works please helppp

    ReplyDelete
  38. Hey I know this is off topic but I was wondering if you knew
    of any widgets I could add to my blog that automatically tweet my newest
    twitter updates. I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.
    Also visit my website ; best free stock Trading software

    ReplyDelete
  39. I like the helpful info you provide in your articles.
    I'll bookmark your blog and check again here regularly. I'm quite sure I
    will learn many new stuff right here! Good luck for
    the next!
    Here is my webpage equity options trading

    ReplyDelete
  40. Thanks very nice blog!
    My weblog :: online trading platform

    ReplyDelete
  41. Hi, its fastidious article about media print, we all be familiar with media is a enormous
    source of facts.
    Also visit my website :: quick ways to make money online

    ReplyDelete
  42. After I originally left a comment I appear to have clicked on the -Notify me
    when new comments are added- checkbox and from now on each time
    a comment is added I get four emails with the same comment.

    Is there an easy method you can remove me from that service?
    Thanks!
    Here is my site : real money online blackjack

    ReplyDelete
  43. Good day! I could have sworn I've visited this site before but after looking at some of the articles I realized it's new to me.
    Anyways, I'm certainly pleased I came across it and I'll be bookmarking it and checking back frequently!
    Also visit my web blog : roulette for cash

    ReplyDelete
  44. Asking questions are genuinely nice thing if you are not understanding
    something completely, but this paragraph presents pleasant understanding even.
    Also visit my web-site : slots for cash

    ReplyDelete
  45. Very good info. Lucky me I ran across your blog by chance (stumbleupon).

    I have book marked it for later!
    My webpage :: online slots for money

    ReplyDelete
  46. I truly love your site.. Very nice colors & theme. Did you make
    this amazing site yourself? Please reply back as I'm looking to create my very own site and want to learn where you got this from or what the theme is named. Thanks!
    My blog ... t shirt affiliate programs

    ReplyDelete
  47. Have you ever thought about adding a little bit more than just your articles?

    I mean, what you say is important and all. Nevertheless imagine if you added some
    great photos or video clips to give your posts more, "pop"!
    Your content is excellent but with images and clips, this website could definitely be one of
    the very best in its field. Fantastic blog!
    Feel free to visit my weblog - best binary options trading platform

    ReplyDelete
  48. Currently it seems like Movable Type is the preferred blogging platform out there right now.
    (from what I've read) Is that what you're using on your blog?
    Here is my page option trading

    ReplyDelete
  49. If some one needs to be updated with most recent technologies afterward he must
    be go to see this web page and be up to date every day.
    Feel free to visit my web-site ; forex swing trading strategies

    ReplyDelete
  50. Excellent goods from you, man. I have understand your stuff previous to and you're just extremely magnificent. I really like what you have acquired here, certainly like what you are saying and the way in which you say it. You make it enjoyable and you still care for to keep it wise. I cant wait to read much more from you. This is actually a wonderful website.
    Also visit my blog legitimate work at home business

    ReplyDelete
  51. I'm truly enjoying the design and layout of your blog. It's a very easy on the eyes
    which makes it much more pleasant for me to come here and visit more often.

    Did you hire out a developer to create your theme?

    Exceptional work!
    Feel free to surf my web site :: win real money playing roulette online

    ReplyDelete
  52. Hi to every one, it's actually a pleasant for me to pay a visit this website, it includes precious Information.
    Feel free to visit my website ; online slot players

    ReplyDelete
  53. Do you have a spam problem on this blog; I also am a blogger, and I was wondering your situation; we have created some
    nice methods and we are looking to trade solutions with
    others, why not shoot me an e-mail if interested.
    My web page united states online casinos

    ReplyDelete
  54. You could definitely see your skills in the article you write.
    The arena hopes for even more passionate writers like you who aren't afraid to mention how they believe. All the time follow your heart.
    Also visit my website - slots fever

    ReplyDelete
  55. It's hard to find knowledgeable people for this subject, but you seem like you know what you're
    talking about! Thanks
    My blog - free slots win real money

    ReplyDelete
  56. Very nice post. I simply stumbled upon your weblog
    and wished to say that I have really enjoyed browsing your blog posts.
    After all I'll be subscribing for your feed and I hope you write once more soon!
    Feel free to surf my site Agricultural commodities

    ReplyDelete
  57. Appreciate this post. Let me try it out.
    Visit my web-site :: trading options

    ReplyDelete
  58. Very good article! We are linking to this particularly great content on our
    site. Keep up the great writing.
    Feel free to surf my weblog :: work from home opportunities for moms

    ReplyDelete
  59. Very great post. I simply stumbled upon your blog and wanted to say that I've really enjoyed browsing your blog posts. After all I'll
    be subscribing for your rss feed and I am hoping you write again soon!
    Feel free to visit my web page ... money making opportunities online

    ReplyDelete
  60. Exceptional post however I was wondering if you could write a litte more on
    this subject? I'd be very grateful if you could elaborate a little bit further. Thank you!
    Also visit my blog ; fast and easy way to make money online

    ReplyDelete
  61. I got this site from my buddy who shared with me about
    this website and now this time I am browsing this website and
    reading very informative articles at this place.
    My blog ; commodity Futures Prices

    ReplyDelete
  62. You actually make it appear really easy with your presentation but I in finding this topic to be really one thing that I believe I would
    never understand. It kind of feels too complicated and extremely broad for me.
    I am taking a look forward for your next submit, I'll try to get the hang of it!
    my site :: internet stock trading

    ReplyDelete
  63. Hi, after reading this amazing post i am also happy to share my familiarity here with mates.
    Here is my web page ... make money real

    ReplyDelete
  64. This is my first time go to see at here and i am really happy to
    read all at one place.
    Stop by my homepage ; how to earn real money online

    ReplyDelete
  65. I do not even know how I finished up right here, but I assumed this submit
    was once great. I do not recognise who you're however certainly you're going to a famous blogger in case you are
    not already. Cheers!
    Also visit my site - how to make alot of money fast

    ReplyDelete
  66. I do not even know how I finished up right here, but I assumed this submit
    was once great. I do not recognise who you're however certainly you're going to a famous blogger
    in case you are not already. Cheers!
    Also see my site: how to make alot of money fast

    ReplyDelete
  67. My coder is trying to persuade me to move to .

    net from PHP. I have always disliked the idea because of the expenses.
    But he's tryiong none the less. I've been using WordPress
    on a number of websites for about a year and am worried about switching to
    another platform. I have heard very good things about blogengine.
    net. Is there a way I can transfer all my wordpress posts into it?
    Any help would be really appreciated!
    Also visit my web-site ... how to make extra money quickly

    ReplyDelete
  68. Have I tried a few, most definitely. You are now familiar with the advanced search feature of
    Yahoo Answers, once you do a. Budget.
    Feel free to surf my page :: Internet Marketing Tips

    ReplyDelete
  69. Dear when I'm using "mount/ -rw -o remount/" command I am getting "bash: mount/: No such file or directory" command. Please help me to fix this.

    ReplyDelete
  70. Does your site have a contact page? I'm having problems locating it but, I'd like to shoot you an e-mail.
    I've got some creative ideas for your blog you might be interested in hearing. Either way, great site and I look forward to seeing it develop over time.
    Here is my web site - Binary options Tips

    ReplyDelete
  71. Hi my family member! I wish to say that this article is amazing,
    nice written and include approximately all significant infos.
    I would like to look more posts like this .
    Also visit my web page oreintal trading

    ReplyDelete
  72. I think it is worth mentioning that when you type and retype the new password as requested by the "passwd username" command, you will not see any feedback on screen, you will not see any echo, not even '*' placeholders, you have to type blind.

    ReplyDelete
  73. The feet plantar hyperhidrosis include a drug or an
    Antiperspirant like Klima Antiperspirant. There are four particular
    areas so I wouldn't have to first cut down the cause: namely, how distressing it can be a miracle drug" I feel so much.
    Here is my web-site : hyperhidrosis treatment New Bloomfld

    ReplyDelete
  74. I have tried to reset my password with this procedure, done the "mount -rw -o remount /" command at the prompt, seems fine, however when I use the "passwd user" I get the following message: "bash: groups: command not found".

    Any ideas what to do, please?

    ReplyDelete
  75. Thanks..it was great help. works perfectly

    ReplyDelete
  76. hey please help me
    i follow the steps above but it doesn't work
    it always says passwd unchanged
    what should i do ?
    pleas help me :(

    ReplyDelete
  77. Same problem as above:
    "Same here: I still cannot login even after a successful change of the password! There is not even the usual red incorrect password warning over the text field. The login prompt momentarily disappears as if I'm about to login OK, a black screen with commands appears for 1 or 2 seconds and then, unfortunately, I'm once more redirected at the login prompt again (!!!) This is driving me nuts, cause I tried it several times, with different pwd lenghts and complexities, but to no avail... Any ideas?! Thanks in advance!!
    "
    Any ideas?

    ReplyDelete
  78. thankyou, thankyou for giving this solution. I will keep a note of this as I will undoubtedly need it in the future. But even if I FORGET where I put the note, I know the answer is out there to be found quite easily:)

    ReplyDelete
  79. IM spanish and i dont understand anifing sory you boy ho rigtt its herating me soo much thet i cant understant

    ReplyDelete
  80. i get "enter new UNIX password"command ,but i am not able to type any word ,like keyboard not working.????

    ReplyDelete
  81. Oh my! Thanks a million! :-*

    ReplyDelete