LinuxQuestions.org
Visit Jeremy's Blog.
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 06-15-2021, 03:19 AM   #1
Jesse Salazar
LQ Newbie
 
Registered: May 2021
Posts: 1

Rep: Reputation: Disabled
Question How to recover my lost/forgotten password in my Linux terminal?


The first problem I have is that I'm a low tech elderly guy. I've received recent updates for the first time in years. I currently use 14.04 & wanted to update to 16.04 but I now understand you've already on 20 or 21 & I have never received any notice of any updates until a few weeks ago. But I can't update because I can't get into the terminal as I lost/forgotten my password. I've tried many web-sites including webmaster@ubuntu.com & many have offered free assistance but, I've tried everything & cannot get into my terminal. Is there a way to recover my terminal password so I can follow updates?
 
Old 06-15-2021, 03:40 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,309
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by Jesse Salazar View Post
Is there a way to recover my terminal password so I can follow updates?
I presume it is Ubuntu you are talking about.

There is no way to recover the password, but there are work-arounds* to allow you to reset the password. Whether you reset the password to the same thing is up to you.

However, with that old a system, which by the way hit end of life a long time ago already, your best approach would be to back up everything in the home directory to two separate external media and then do a fresh install with Ubuntu 20.04 and restore the home data from backup.

Back up copies are important and storage is inexpensive nowadays.


Edit: This is from 2012 but should apply reasonably well to Ubuntu 14.04: https://www.psychocats.net/ubuntu/resetpassword

Last edited by Turbocapitalist; 06-15-2021 at 03:42 AM.
 
Old 06-15-2021, 03:58 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Another useful thing to arrange for the future is to always have a bootable "rescue" device available for jobs like this. There are specialised rescue distros like SystemRescue that you can download and put on a CD or a memory stick for future use, but for distros like Ubuntu, the installation image will usually do just fine. When you boot from it, you immediately have a running system independent of your hard drive, and in that system you are the root user. So you can mount your normal root partition on some suitable empty directory (most people use /mnt) and do whatever you want with it including resetting the root password.
 
Old 06-15-2021, 06:10 PM   #4
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 335

Rep: Reputation: Disabled
Quote:
Originally Posted by Jesse Salazar View Post
I currently use 14.04 & wanted to update to 16.04
Unfortunately, because ubuntu 16.04 expired on April 30th this year, you won't receive any updates for 16.04..... Unless you pay for them.

Quote:
I now understand you've already on 20 or 21
As I understand the ubuntu system, the numbers indicate the month and year the distro is released.

If I am correct, then the current ubuntu's will all be using 21.XX

Quote:
I have never received any notice of any updates until a few weeks ago. But I can't update because I can't get into the terminal as I lost/forgotten my password.
I suggest you abandon your current ubuntu and install a current distro. However I believe you'll need to become root to write an iso to a usb to do an install. so you could be in a world of pain to write any distro to a usb.

As for getting updates, that is a relatively simple matter of becoming root, selecting a mirror and giving your computer the correct instructions.

Before doing an update/upgrade you will have a copy of EVERYTHING you want to keep on an external drive, won't you?
 
Old 06-15-2021, 06:31 PM   #5
Bonzoo
Member
 
Registered: Sep 2018
Location: Costa Rica
Distribution: Antix21a2,Parrot rolling,MXfce19.4,Sparky Openbox
Posts: 233

Rep: Reputation: 48
Ya'll just stop it.

What is saved on that machine you don't want to lose ?
Pictures?
Books ?
Word documents/tax records.
Let us (me) know and you can save that stuff to a USB thumb drive, install a new system and move them into the new systems documents folder.
What web browser do you use ? Fox? Chrome?. That stuff can be saved to the same thumb(usb) drive and imported to your new system. No sweat
 
Old 06-15-2021, 06:33 PM   #6
lovemeslk
Member
 
Registered: Feb 2020
Location: Rantoul IL
Distribution: Slackware
Posts: 350

Rep: Reputation: 72
Turbocapitalist nailed it.
Ubuntu 14.04
At boot you see grub . If not press the right hand shift key button. Now you see the menu press the letter "e"
at the end of the vmlinuz line add this.
Quote:
init 1
then press the ctrl pluss the "x" key to boot.
In the terminal type passwd now give root a password.
you will not see any typing just put it in as it asks.
Now type init 4.
from then on in 14.04 you have a new user root.
And in 14.04 you are able to login as root.
From there you can give reset that sudo users password.
or if you want to use root.
Just open a terminal type su then password do all your apt-get you want.

Last edited by lovemeslk; 06-15-2021 at 06:38 PM.
 
Old 06-16-2021, 05:00 AM   #7
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Don't think there is any root password. Perhaps I am mistaken but by default root account is disabled in Ubuntu. I would suggest to use live distribution - all iso's for Ubuntu are now hybrid, yes? But no matter there are plenty live distributions around. Use live distribution to copy most important files and as others here suggested install new version of Ubuntu.

Edit: Perhaps if your computer is very old - it may be not possible to run recent Ubuntu versions. But there are others distributions for old computers with Mate as desktop - they will serve you well.

Last edited by igadoter; 06-16-2021 at 05:02 AM.
 
Old 06-16-2021, 05:04 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
If your computer is really old, then forget about Ubuntu. Install AntiX instead.
 
  


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
Recover Forgotten Administrative Password Pichito9 Linux - Newbie 25 11-22-2014 07:56 PM
Recover Forgotten Administrative Password (Authentication token manipulation error) Pichito9 Linux - Newbie 4 06-23-2014 12:15 PM
I have lost my password. can you help me to recover my password in ubuntu croosnaya Linux - Newbie 4 04-17-2012 06:52 PM

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

All times are GMT -5. The time now is 05:55 AM.

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