A
A
Alex2020-06-12 23:10:37
linux
Alex, 2020-06-12 23:10:37

How to reset password on manjaro linux?

Good day. Installed manjaro linux gnome, and immediately there was a fakap.
When trying to install at least something, it requires a user password, although I did not install it in the system launcher (I checked the box for automatic login without a password, but did not enter the password itself). Googled the default one, but it doesn't fit.

How can I reset my password? Thank you in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Grims, 2021-05-02
@jfouucrk

Everything is quite simple, the algorithm:
I have a GRUB bootloader, so I describe from its point of view, if you have UEFI, there may be nuances.
1. If the system is not dual-boot (for example, Windows + Linux), then when you turn on (or reboot) the PC, you need to hold down Esc or Shift until the GRUB menu appears.
2. In the GRUB menu, opposite the desired boot item (in your case, "Manjaro Linux"), press e
3. In this text file, find the line " linux ..." (usually almost at the very end) and immediately move to the end of the line - the Ctrl combination +e , put a space and add single init=/bin/bash
5. Press Ctrl+x or F10to continue downloading.
6. Further, all commands will be only on the command line.
7. If the file system is mounted read-only, remount for writing mount -n -o remount,rw /
8. Type the username in the passwd command line , press Enter.
8.1 If the login was also successfully forgotten, then you can see what kind of users are generally found in the system cut -d: -f1 /etc/
passwd displayed).
9.1 Everything went well, if you see something like password updates successfully
10. Type reboot -f , press Enter
11. Boot as usual and log in with the newly set password.
PS
If this does not work, you will have to go through LiveCD and chroot.

C
CityCat4, 2020-06-12
@CityCat4

There are at least two ways.
The password is an entry in the /etc/shadow file. To change it, you need to change what is written in this file, to reset the password (so that it does not exist at all), you need to bring the corresponding entry to the form:
babay::18271:0:99999:7:::
where babay is the user's name, and the numbers can be any. The main thing is that there should be nothing between the characters :: after the username (The text located in this place is an encrypted password)
1. LiveCD with any distribution, mount the disk with the system and erase what is there (then you need to set it)
2. Emergency mode, mount the disk and erase (then, of course, you need to set it)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question