Resetting a forgotten password in Ubuntu 12.10 is thankfully a pretty easy task. Perhaps you’ve received a laptop that came with Ubuntu on it already, or your friend has reset the password accidentally, or maybe you’ve simply forgotten it. The reasons can vary, but luckily it’s quite simple to do – keep reading to find out how to reset your Ubuntu password.
Step 1.) Enter “Recovery” Mode
While the Ubuntu machine is booting up, hold the shift key to enter the recovery mode. Once you see the screen below, select the Advanced Options for Ubuntu and then select the “Recovery Mode” option. This is similar to Microsoft’s safe mode, but much more powerful.
Step 2.) Open Up BASH
Now that you’ve mounted the Ubuntu installation that you’re attempting to reset the system on, simply drop to the root shell. This will allow you to run the passwd utility and reset your desired user account.
Step 3.) Reset Your Password
Now the good stuff, run the following commands to target the desired user and reset your password.
First you need to un-mount the file system as it is currently mounted as read-only, you may have noticed this when you first dropped to the root shell – see the image above.
Now that file system is no longer read-only, we can examine /etc/passwords to identify all of the users on this system, then pick the desired user for a password reset.
Next simply run the passwd utility to reset the desired user account.
If you see the following on your terminal, you can run the exit command to restart the system in normal mode.
Hope that helped! Drop us a comment below if you’re good to go!