How to reset password in single user mode in Ubuntu 18.04

  1. BOOT INTO GRUB MENU:
    The first step is to reboot into the GRUB menu. If Ubuntu 18.04 Bionic Beaver is the only operating system installed you need to keep pressing SHIFT for the GRUB menu to show up.
GRUB MENU
Edit Grub Menue with ‘e’
Replace ro to rw init=/bin/bash

4. Reboot

# exec /sbin/init

--

--

Devops Engineer https://vineetkumar03.github.io

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store