Ubuntu

How to reset Root password on Ubuntu 17.04 if forgotten

How to reset Root password on Ubuntu 17.04 if forgotten

This is a howto tutorial on how to reset root password on Ubuntu 17.04 via Grub. Please note that its assumed that you have physical access to the machine in question, it cannot be done remotely. Before we proceed, lets take a quick look at what Grub is about.

What is GNU GRUB?

GNU GRUB as described here, is a Multiboot boot loader. It was derived from GRUB, the GRand Unified Bootloader, which was originally designed and implemented by Erich Stefan Boleyn.

Briefly, a boot loader is the first software program that runs when a computer starts. It is responsible for loading and transferring control to the operating system kernel software (such as the Hurd or Linux). The kernel, in turn, initializes the rest of the operating system (e.g. GNU).

Reset Root Password

Before Change

linux              /boot/vmlinuz-4.10.0-20-generic root=UUID=935da898-\ 3af3-469a-bacf-21164ca3efc9  rw quiet splash $vt_handoff

After Change

linux              /boot/vmlinuz-4.10.0-20-generic root=UUID=935da898-\ 3af3-469a-bacf-21164ca3efc9  rw init=/bin/bash

[email protected](none):/# mount | grep -w /

[email protected](none):/# exec /sbin/init

If you run into any change while carrying out this steps, please feel free to drop a comment of the challenge and we will do our our to provide a fix

How to Install and Play Doom on Linux
Introduction to Doom The Doom Series originated in the 90s after the release of the original Doom. It was an instant hit and from that time onwards th...
Vulkan for Linux Users
With each new generation of graphics cards, we see game developers push the limits of graphical fidelity and come one step closer to photorealism. But...
OpenTTD vs Simutrans
Creating your own transport simulation can be fun, relaxing and extremely enticing. That's why you need to make sure that you try out as many games as...