I forgot the password and my username

Life is complicated, don’t ask me how it happened, what is the best and easiest way to recover my username and reset the password.
:sweat_smile:

I have no recovery menu in grub by default

Do you have different passwords for user and root, or are user and root passwords the same?

Pudge

Boot to recovery mode (aka single user mode), log in as root, do what you need.

Or,

Boot using a live installer environment, chroot into your install, change password, etc. etc.

3 Likes

same pass

Hope your installation is not encrypted…

I am not sure this will work, but you can try @jonathon 's second option. Then
cat /etc/passwd
scroll through until you see a user name you recognize. Maybe that will trigger your memory for the passwd.

Pudge

is not HDD western digital no UEFI or encryption
really simple 1 partition to / and 1 partition to /home

Then the suggestion by @jonathon should work.

I think i should try the chroot fix, i have no recovery in grub menu, only the fallback. Is any key to show the recovery menu if not set in /etc/default/grub?

It’s not a menu item.

However, if you don’t remember your root password then it won’t help you.

You’ll need to use another running OS to access your disk. This will let you find out the username and either clear or reset the password.

The other option is to try with init=/usr/bin/bash on the end of the GRUB boot line, though I’m not sure how well that works now… (I just tried it on a tablet with external keyboard and didn’t have any keyboard input).

1 Like

@d.lion.2020
I think if you just press e when the grub menu comes up you can add what @jonathon said.

Ok chroot was able to fix my problem

mkdir /mnt/arch
mount /dev/sda1 /mnt/arch

Screenshot_2020-12-14_00-40-14

Thank you guys for helping me. :crazy_face:

1 Like

And so you marked your own post as the solution? :roll_eyes:

5 Likes

Sure, I looked for the specific answer by myself, next time I’ll buy you a candy :candy: :hugs: