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

Gry Jak korzystać z GameConqueror Cheat Engine w systemie Linux
Jak korzystać z GameConqueror Cheat Engine w systemie Linux
Artykuł zawiera przewodnik dotyczący korzystania z silnika oszukującego GameConqueror w systemie Linux. Wielu użytkowników, którzy grają w gry w syste...
Gry Najlepsze emulatory konsoli do gier dla systemu Linux
Najlepsze emulatory konsoli do gier dla systemu Linux
W tym artykule wymienimy popularne oprogramowanie do emulacji konsoli do gier dostępne dla systemu Linux. Emulacja to warstwa kompatybilności oprogram...
Gry Najlepsze dystrybucje Linuksa do gier w 2021 r
Najlepsze dystrybucje Linuksa do gier w 2021 r
System operacyjny Linux przeszedł długą drogę od pierwotnego, prostego, serwerowego wyglądu. Ten system operacyjny znacznie się poprawił w ostatnich l...