Best would be to boot into a live environment, from there enter a chroot environment, and reset the password from there.
How to chroot
-
Ensure you’ve got a relatively new ISO or at least one with a still supported LTS kernel.
-
Write/copy/
dd
the ISO to a USB thumb drive. -
When done, boot with the above mentioned USB thumb drive into the live environment.
-
Once booted, open a terminal and enter the following command to enter the
chroot
encironment:
manjaro-chroot -a
- If you have more than one Linux installation, select the correct one to use from the list provided.
When done, you should now be in the chroot
environment.
But, be careful, as you’re now in an actual root environment on your computer, so any changes you make will persist after a restart.
This all assumes you don’t use either encryption, nor btrfs, both of which are cases I won’t be able to help you with.
From the chroot environment, you can reset your user’s password with:
passwd <userName>
Where, you guessed it, <userName>
is the username whose password you wish to reset.
When done, exit the chroot
environment, and reboot.
Make sure your computer doesn’t reboot back into the live environment!
AFAIK you should now be able to log in again. I*f not, please open a new topic, as I might not be here anymore…