Score:1

Forgot Ubuntu Password

tw flag

Device : Thinkpad X250 Distro : Ubuntu 20.04 ( the latest one)

So the problem is, i accidentally delete the username and password via /etc/passwd. I have 2 user, my main User Account is that i deleted. And the second user i forgot my pass. Any solution?

ChanganAuto avatar
us flag
Reinstall the OS and don't forget the passwords?
guiverc avatar
cn flag
Your question is rather unclear; latest Ubuntu - but you mention the 2020-April release (20.04) which was 5 releases ago? You've also tagged it's a boot problem (syslinux & grub) which relates how? You didn't say if desktop or server, as desktop system can be rather easily installed to fix lost-password (*without destruction of data & Ubuntu repository software auto-reinstalled*) but **not** if encryption is involved; your tags imply to me encryption is involved (*thus booting is impaired*?)
Score:-2
ne flag

You need a Linux USB Stick, for example you can buy one or you can flash an USB with Balena Etcher (on Linux) or Rufus (on Windows). To do this, you need another computer and an USB Stick. Then, you can boot linux from this USB. Now you can download a passwd and shadow for linux from the web, store it to /etc, boot linux again (withour the USB) and login with the new credentials. Then you can change your password.

ShibaYouw avatar
tw flag
Ok i'll try :))
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.