Forgotten Ubuntu Root Password

  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.

Cloud Advisory Services | Security Advisory Services | Data Science Advisory and Research

Specializing in high volume web and cloud application architecture, Anuj Varma’s customer base includes Fortune 100 companies (dell.com, British Petroleum, Schlumberger).

All content on this site is original and owned by AdverSite Web Holdings, Inc. – the parent company of anujvarma.com. No part of it may be reproduced without EXPLICIT consent from the owner of the content.

Anuj Varma – who has written posts on Anuj Varma, Technology Architect.


Leave a Reply

Your email address will not be published. Required fields are marked *