Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Reset Forgotten Ubuntu Password

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 02-03-2009
Member
 
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.
Reply With Quote
  #2  
Old 02-03-2009
Devasis's Avatar
Member
 
Join Date: Jan 2008
Posts: 1,862
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:
    Quote:
    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:
    Quote:
    passwd username
  • Type in a new password and retype to verify
  • Reboot the system.

Reply With Quote
  #3  
Old 02-03-2009
Solomon's Avatar
Member
 
Join Date: May 2008
Posts: 2,531
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:
Quote:
chroot /media/sda1
passwd user
Now change the password, and reboot.
Reply With Quote
  #4  
Old 02-03-2009
MrChris-'s Avatar
Member
 
Join Date: Apr 2008
Posts: 1,995
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:
Quote:
ls /home
You should then see a list of the users on your Ubuntu installation.
To reset the password, type:
Quote:
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.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads for: "Reset Forgotten Ubuntu Password"
Thread Thread Starter Forum Replies Last Post
How to Reset / Recover Forgotten Windows Password? help Vista Administration 3 1 Day Ago 12:44 PM
How to Reset / Recover Forgotten Windows NT / 2000 / XP / 2003/VISTA Administrator Password? windows8 Operating Systems 1 25-05-2009 11:14 AM
Forgotten Password billywhizz Vista Administration 8 05-05-2009 02:28 AM
Forgotten password copterbob Microsoft Security 3 17-01-2008 10:35 AM


All times are GMT +5.5. The time now is 08:29 AM.