I forgot my password

Hello, i have used the same password for a couple of months now. But, it has suddendly stoped working. And i also dont know my root password as it was the same as the other password.

I have tried using my old passwords and entering bash, but neither worked. As i cannot type in bash because my keyboard is not supported.

What should i do?

Hi @Idkanymore, and welcome!

I’d recommend changing the password from a chroot environment. Do you know how to enter one?

No, could youd tell me

Yes, that’s why I asked. Be sure to have a live environment USB drive handy.

To enter a chroot environmeent

  1. Ensure you’ve got a relatively new ISO or at least one with an LTS kernel.

  2. Write/copy/dd the ISO to a USB thumb drive.

  3. When done, boot with the above mentioned USB thumb drive into the live environment.

  4. Once booted, open a terminal and enter the following command to enter the chroot environment:

manjaro-chroot -a

If you have more than one Linux installation, select the correct one to use from the list provided.

If sucessfully 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.

From the chroot environment, run the following to change the root password:

passwd

Follow the prompts. Afterwards, change your user’s password with:

passwd <username>

Where <username> is the username of your user.

Follow the prompts, and then exit the chroot environment:

exit

Once done, reboot your computer and see if it worked.

5 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.