You may have forgotten your user account password on your Debian 10 operating system or another situation has occurred where you need to reset and assign a new password. This can be done by following the simple instructions below.
The password for the Debian 10 operating system (and any other operating system) is necessary to secure access to your computer or server. Here are a few reasons why a password is important in Debian 10:
Using a password in Debian 10 is one of the main ways to secure your system and data, so it is important to create a strong and complex password to protect your information.
The first thing to do is when turning on the system while the Grub menu is displayed, the startup options. Press the key "E", Latin alphabet.
Next, in the opened system boot parameters in the line that begins with linux at the end after quiet you need to put a space and write the following:
init=/bin/bash
Now enter the command to mount our file system with rights not only to read, but also to write, respectively, and to make changes.
mount -rw -o remount /
To change the password you need to enter a simple command:
passwd
Without any names or additions press Enter and at the question new password enter the new password. Then we will be asked to confirm the entered password by entering it again, enter it again and press Enter again. If we have done everything correctly, we will see the answer "password updated successfully". Next we need to unmount
the file system with the umount /
command and reboot
with the reboot -f
command.
Now that the root user password has been reset, changing it for any account is easy. To change the user password, after booting the system, type the command in the terminal as root.
passwd user_name
Now enter the new password twice, press Enter after each password entry.
There are several possible reasons why you may have difficulty changing your password on the Debian 10 operating system. Here are some of the most common problems and how to solve them:
sudo
group). If you do not have sufficient rights, you may be denied access to change the password.If you are experiencing a password change issue, I recommend that you start by checking the above items. If the problem remains unresolved, a detailed description of the error or error message may help in finding a more specific solution.