Post

How To Reset Root Password on Ubuntu 16.04

  1. Edit Grub Menu with press “e”

  2. Find the line “linux” and add script below at the end of that line

    1
    
    rw init=/bin/bash
    

  3. Mount with to see read/write flags

    1
    
    root@(none):/# mount | grep -w /
    

  4. Reset password with command below

    1
    
    root@(none):/# passwd
    

  5. Reboot your system

    1
    
    root@(none):/# exec /sbin/init
    

This post is licensed under CC BY 4.0 by the author.