Unfortunatelly I made mistake somewhere but can't get where. I had issues with ssh and github, tried different things and they didn't work. Later I decided .. i think.. moved file i balieve it was home/username/known.hosts or smth like that. Additonally I deleted everything from folder, where id_25519 and id_25519.pub files (maybe they are related to github, i don't know). And somewhere in between or afteer all. I could not provide my password in terminal. I 200% sure it's correct, no caps/num/ other things used. and now i can't log in to my linux mint cinamon 20. I will really appreciate any help how can I recover my laptop. It starts, but requires pass. And I can't understad how coudl it change ......
Asked
Active
Viewed 35 times
1 Answers
2
It's unlikely modifying anything in your home directory will have reset your password. On most distributions it's stored in /etc/shadow by default.
To get to a recovery console, the most easy thing to try is to change the init kernel parameter on boot.
Assuming you are booting with grub:
- switch on your computer
- At the boot menu press e to edit the boot entry
- You might be asked for your grub password if you have one set
- Modify the line starting
linuxto addinit=/bin/bashat the end - Press f10 to boot
This should give you a root command line with / mounted readonly. To make it read-write remount it:
mount -o remount,rw /
You should be able to reset your password with:
passwd <username>
And finally reboot with:
reboot
Philip Couling
- 17,591
- 5
- 42
- 82
-
Thanks. will check this in several hours – Maks Chornyi Aug 09 '23 at 10:13
-
how can I pay off? It helped but I would never do this by my own. Do you have buymeacoffee account? or patreon or anything)? – Maks Chornyi Aug 19 '23 at 15:07
-
@MaksChornyi check my profile links ;-) glad it helped – Philip Couling Aug 20 '23 at 01:29