Results 1 to 4 of 4

Thread: Reset Forgotten Ubuntu Password

  1. #1
    Join Date
    Jan 2009
    Posts
    40

    Reset Forgotten Ubuntu Password

    Hello all,

    I have just installed Ubuntu on my system. And now i forgot the password selected during the installation process. Can anyone have any idea to reset password?

    Thank you in advance.

  2. #2
    Join Date
    Jan 2008
    Posts
    3,388

    Re: Reset Forgotten Ubuntu Password

    Resetting password is so easy in Ubantu. reset your password by following steps:
    • Boot your computer and when you see "Loading Grub" press the ESC (Escape) key. If you missed it, just reboot and try again.
    • On Grub prompt, press 'e' to enter Edit mode.
    • Highlight the line that begins with kernel and press 'e'.
    • Type the following command after the word 'splash' at the end of th e line:
      rw init=/bin/bash
    • Press enter
    • Press 'b' to reboot
    • you will see a passwordless root shell on startup.
    • Type the following command and replace 'username' with the name of the account you want to change:
      passwd username
    • Type in a new password and retype to verify
    • Reboot the system.

  3. #3
    Join Date
    May 2008
    Posts
    4,085

    Re: Reset Forgotten Ubuntu Password

    Another way is to boot into the system via a live cd open up Applications->Accessories->Terminal then mount your ubuntu drive if its on /dev/sda1 do this: mount /dev/sda1/ /media/sda1
    Then we chroot into the system:
    chroot /media/sda1
    passwd user
    Now change the password, and reboot.

  4. #4
    Join Date
    Apr 2008
    Posts
    3,267

    Re: Reset Forgotten Ubuntu Password

    To reset your password first, you have to reboot into recovery mode. If you have a single-boot, you may have to press the Escape key during bootup in order to see the boot menu. If you have a dual-boot, the boot menu should appear without the need to press the Escape key. From the boot menu, select recovery mode, which is usually the second boot option.After you select recovery mode and wait for all the boot-up processes to finish, you'll be presented with a few options. In this case, you want the Drop to root shell prompt option so press the Down arrow to get to that option, and then press Enter to select it. The root account is the ultimate administrator and can do anything to the Ubuntu installation (including erase it), so please be careful with what commands you enter in the root terminal.
    Once you're at the root shell prompt, if you have forgotten your username as well, type:
    ls /home
    You should then see a list of the users on your Ubuntu installation.
    To reset the password, type:
    passwd username
    where username is the username you want to reset.
    Just type the password and hit Enter when you're done. Retype the password when prompted and hit Enter. Type 'exit' to return to the recovery menu. After you get back to the recovery menu, select resume normal boot.

Similar Threads

  1. Replies: 5
    Last Post: 04-10-2011, 03:36 PM
  2. How to reset the forgotten lock code for Nokia E61
    By Bayougoula in forum Portable Devices
    Replies: 6
    Last Post: 09-10-2010, 01:43 PM
  3. Replies: 4
    Last Post: 28-06-2010, 01:14 PM
  4. Reset CMOS password requires reset bios?
    By Aditya kumar in forum Operating Systems
    Replies: 2
    Last Post: 04-08-2009, 05:27 PM
  5. Replies: 1
    Last Post: 25-05-2009, 10:14 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,577,832.83740 seconds with 17 queries