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

Ubuntu 14'te League Of Legends Nasıl Kurulur.04
League of Legends hayranıysanız, bu, League of Legends koşusunu test etmeniz için bir fırsattır. Linux kullanıcısıysanız LOL'nin PlayOnLinux'ta destek...
En son OpenRA Strateji Oyununu Ubuntu Linux'a yükleyin
OpenRA, klasik Command & Conquer: Red Alert gibi erken Westwood oyunlarını yeniden yaratan bir Libre/Free Gerçek Zamanlı Strateji oyun motorudur. Dağı...
Gamecube & Wii için en yeni Dolphin Emulator'ı Linux'a yükleyin
Dolphin Emulator, seçtiğiniz Gamecube & Wii oyunlarını Linux Kişisel Bilgisayarlarda (PC) oynamanıza izin verir. Ücretsiz olarak kullanılabilen ve aç...