1. From GRUB, choose Ubuntu Repair Menu—> Choose root—> passwd ‘username’ (or just plain passwd)
  2. Once updated, type reboot

Enter image description here

Cmd Line Root Prompt

  1. OR – type E (for edit) on the Ubuntu Image (in the grub menu) 
  2. Highlight the line that begins kernel ......... or linux ........, press e
  3. Go to the very end of the line and add rw init=/bin/bash
  4. Press Enter, then press b to boot your system. Your system will boot up to a passwordless root shell.1

  5. Now issue the command passwd username *where “username” is the user for which you want to change the password.

Anuj holds professional certifications in Google Cloud, AWS as well as certifications in Docker and App Performance Tools such as New Relic. He specializes in Cloud Security, Data Encryption and Container Technologies.

Initial Consultation

Anuj Varma – who has written posts on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.