How to Reset your Ubuntu User Password

Duc Bui
Duc Bui
  • Updated

If you forgot the password and cannot log in (Recovery Mode)

This is the most important recovery method.

Step-by-step

  1. Reboot

  2. Hold Shift (BIOS) or Esc (UEFI) to open GRUB

  3. Select:

    Advanced options for Ubuntu
    
  4. Choose:

    Ubuntu, with Linux … (recovery mode)
    
  5. 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

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.