How to Reset Linux User Password If You Forget
Step by step to Reset Linux User Password (This solution is same for all Linux distributions):
1. Start virtual machine and suddenly you will see the GRUB (Tip: if you don’t see GRUB then press ESC key when virtual machine starts, if you miss then you need to try again).
2. Select recovery entry from GRUB.
3. Now you will see recovery menu, select root (Drop to root shell prompt) option.
4. Type this command mount -rw -o remount / and press enter.
5. Now type passwd [username] (example: passwd root) and press enter.
6. Enter new password twice and enter exit to reboot.
2. Select recovery entry from GRUB.
3. Now you will see recovery menu, select root (Drop to root shell prompt) option.
4. Type this command mount -rw -o remount / and press enter.
5. Now type passwd [username] (example: passwd root) and press enter.
6. Enter new password twice and enter exit to reboot.