LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-17-2019, 10:21 PM   #1
1bSpanMan
LQ Newbie
 
Registered: Nov 2016
Posts: 15

Rep: Reputation: Disabled
Mint 19 --forgotten user password reset failed.


Went on a 5 week trip and forgot my Mint 19.0 user password. Sole user, no root password.Tried to use an 18.3 live CD to boot, and use the following commands:
sudo mount /dev/sda1 /mnt
sudo chroot /mnt
passwd <name of your account>
exit
sudo umount /mnt
exit

When I tried to enter the user account name I was told no such user. Since I am the only account, I tried using simply <passwd> without any account name. This let me enter a new Unix password and said it was successful, but when I rebooted into Mint 19.0 it still won't accept the new password, although it doesn't say its invalid. it just asks me to login again.
Have I totally screwed things up, or can I still find a method to get back in?
 
Old 05-17-2019, 10:42 PM   #2
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by 1bSpanMan View Post
Went on a 5 week trip and forgot my Mint 19.0 user password. Sole user, no root password.Tried to use an 18.3 live CD to boot, and use the following commands:
sudo mount /dev/sda1 /mnt
sudo chroot /mnt
passwd <name of your account>
exit
sudo umount /mnt
exit

When I tried to enter the user account name I was told no such user. Since I am the only account, I tried using simply <passwd> without any account name. This let me enter a new Unix password and said it was successful, but when I rebooted into Mint 19.0 it still won't accept the new password, although it doesn't say its invalid. it just asks me to login again.
Have I totally screwed things up, or can I still find a method to get back in?
1) At boot (before grub) hold down the ESC key
2) Select the Entry you want to boot and press 'e'
3) Find the kernel line, change ro to rw init=/bin/sh
4) Press F10
5) It will boot into single user mode so run passwd on either root or your user and change your password.
6) ???
7) Profit!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Recover/Reset Forgotten MySQL/MariaDB root User Password On Linux? LXer Syndicated Linux News 0 05-14-2019 01:00 PM
How to reset forgotten adminstrative password? somnathbhattach Linux - Newbie 1 03-22-2014 09:16 AM
How to reset (forgotten) user password? Cartech3 Linux - Newbie 6 02-05-2012 01:31 AM
forgotten superuser password reset sourabh.sinha Linux - Newbie 5 03-02-2010 08:12 PM
How to reset forgotten root password comprookie2000 Linux - Newbie 4 10-28-2004 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration