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

Cele mai bune emulatoare pentru console de jocuri pentru Linux
Acest articol va enumera programele populare de emulare a consolei de jocuri disponibile pentru Linux. Emularea este un strat de compatibilitate softw...
Best Linux Distros for Gaming in 2021
The Linux operating system has come a long way from its original, simple, server-based look. This OS has immensely improved in recent years and has no...
Cum să capturați și să transmiteți în flux sesiunea de jocuri pe Linux
În trecut, jocurile erau considerate doar un hobby, dar cu timpul industria jocurilor a cunoscut o creștere imensă în ceea ce privește tehnologia și n...