Forgot your administrator password in Ubuntu operating system? This is a solvable problem. We will not consider the reasons why the password may have been lost, but will focus on the main thing - instructions on how to change it. In Ubuntu and other Linux distributions, you can change the password of a user account using the passwd command.
To change the password of a user account, you need to enter the passwd
command without any parameters:
$ passwd
Next, the system will prompt the user to enter a new password. This will be prompted by the following dialog box:
Changing password for linuxize.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Enter the new password - it is not displayed. Next time you log in to your Ubuntu machine, use the new password. If you don't remember your password, the first thing you should do is reset it. To do this, you need to enter Recovery Mode through the GRUB bootloader menu while the computer is booting.
In the menu go to the item "Advanced settings for Ubuntu" and press "Enter". We get to the advanced settings where we go to the item where recovery mode is specified in brackets. Go to the item root.
Next, switch the root file system to write mode.
mount -rw -o remount /
A command line will appear at the bottom. Put the root file system in write mode.
passwd username
Confirm the password and reboot:
reboot
That's it. The password on the Ubuntu 14 operating system has been successfully changed.