Reset lost/forgotten/non-working Password

Write tutorials here
There are more tutorials here
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
User avatar
Level 9
Level 9
Posts: 2886
Joined: Mon Mar 11, 2013 11:39 pm

Reset lost/forgotten/non-working Password

Post by gold_finger »

WARNING: DO NOT USE this tutorial if you have an encrypted home. Only use if you have a regular installation without using encryption.

NOTE: This is just a remake of this tutorial using code blocks and pictures to make it easier for the inexperienced to follow.

If you lost or forgot your main user password and can't log into the system anymore, follow these steps to set a new one during boot-up of the computer.
  1. Reboot / Turn on Computer
  2. If computer normally shows the grub menu on startup, skip to step #3. If not, then immediately press and hold down the left <SHIFT> key to force the grub menu to show. (Keep holding it down until the menu appears.)
  3. Using arrow keys, highlight entry for Mint installation. (If it's first on list it's already highlighted.)
  4. Press "e" to edit grub.
  5. Using the arrow keys, navigate down to the line that reads similarly to this:
  6. Change ro quiet splash vt.handoff to rw init=/bin/bash. It should now look like this:
  7. After change above has been made, press <F10> key to boot.
  8. The system will boot into a password-less root shell where you can then set new password for your user.
  9. At the prompt, type passwd yourusername, but substitute your real username in place of "yourusername".
  10. It will ask you to enter the password you want to set; then re-enter it. (NOTE: no characters will appear on the screen as you type the password. That is normal. Just type password carefully, hit <ENTER>, then re-type when asked.)
  11. Once new password is set, type sync, hit <ENTER>; then type reboot -f and hit <ENTER>.
  12. Computer will reboot and new password should work to log you in.
Last edited by gold_finger on Tue Oct 04, 2016 8:35 am, edited 1 time in total.
Please add [SOLVED] to your thread if a solution is found. Go to your first post in the thread, hit "Edit" button and add [SOLVED] to the title of the post.

How To Format Your Forum Posts.

Try Linux Beginner Search Engine for Linux questions.

User avatar
Level 18
Level 18
Posts: 8952
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: Reset lost/forgotten/non-working Password

Post by jimallyn »

Thanks, I will bookmark that. This one is also good:

https://easylinuxtipsproject.blogspot.c ... sword.html
Last edited by karlchen on Mon Mar 11, 2019 6:01 pm, edited 1 time in total.
Reason: updates URL to Pjotr's Easy Linux tips

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan

Post Reply

Return to “Tutorials”