<Read story first
There are plenty of different procedures on the web for resetting the password of your linux distribution. As disparate as they seem, all of them work by logging into passwordless root shell. Following are the steps I gathered from sources and followed. Worked as a charm!
[Found out that these steps don't work if you have encrypted your home directory or whole system. Guess you need to encrypt every other thing out there to be secure]**
However, we ended up formatting mint the other day itself, and installed a super-slow-Ubu14.04 : #believe_me - it was worse than what Windows could ever get! The real task now was, to run the Ubu on the PC with 1GB ram and only 10gigs of Swap space. To know how to speed up the ubuntu system, and disabling the 3D graphics, stay tuned for our next post!
There are plenty of different procedures on the web for resetting the password of your linux distribution. As disparate as they seem, all of them work by logging into passwordless root shell. Following are the steps I gathered from sources and followed. Worked as a charm!
[Found out that these steps don't work if you have encrypted your home directory or whole system. Guess you need to encrypt every other thing out there to be secure]**
- Reboot your PC.
- Hold down the Shift key at the start of the boot process to enable the GRUB boot menu.
- Select the entry for your Linux installation (not the recovery-mode one)
- Then press e to edit.
- You'll see bunch of options for system-startup.
-
Use the Arrow keys to navigate to a line that looks similar to this:
linux /boot/vmlinuz-[kernel version]-generic root=UUID=[letters and numbers]\[letters and numbers] ro quiet splash vt.handoff=7
-
Change
ro quiet splash vt.handoff=7
torw init=/bin/bash
so it now reads:
linux /boot/vmlinuz-[kernel version]-generic root=UUID=[letters and numbers]\[letters and numbers]
rw init=/bin/bash
- Press F10 or Ctrl+X to boot your system.
- Your system will boot up to a passwordless root shell.
- Now, since I had forgotten the username, in my case, I first printed the list of users.
Typecat /etc/passwd
first to get a list of all users and note your username. In most cases, it is at the end. -
Type in
passwd yourusername
- Set your new password.
- Restart your system.
However, we ended up formatting mint the other day itself, and installed a super-slow-Ubu14.04 : #believe_me - it was worse than what Windows could ever get! The real task now was, to run the Ubu on the PC with 1GB ram and only 10gigs of Swap space. To know how to speed up the ubuntu system, and disabling the 3D graphics, stay tuned for our next post!
No comments:
Post a Comment