If you forgot the password and cannot log in (Recovery Mode)
This is the most important recovery method.
Step-by-step
Reboot
Hold Shift (BIOS) or Esc (UEFI) to open GRUB
Select:
Advanced options for UbuntuChoose:
Ubuntu, with Linux … (recovery mode)Select:
root – Drop to root shell prompt
Remount filesystem as read-write
Recovery mode mounts / as read-only.
mount -o remount,rw /
Reset the password
passwd username
Example:
passwd duc
Reboot
reboot
You can now log in normally.
Related to
Comments
0 comments
Please sign in to leave a comment.