How to reset Root Password on Ubuntu/Debian

Today we want to talk about resetting the root Password on Ubuntu/Debian Linux

The first Step is to Boot up your system and pause at the Grub Bootloader.

Bildschirmfoto 2013-07-06 um 17.54.50

Select the recovery mode (the second one) and press e for editing the boot commands.

at the and of  initrd=/install/initrd.gz add init=/bin/bash

Bildschirmfoto 2013-07-06 um 17.57.40

After that type str+x to restart the machine

Bildschirmfoto 2013-07-06 um 18.00.44

now type fdisk -l to see the available disks at your machine, to mount the sda1 partition with the following command

mount -o remount,rw /dev/sda1 once you are done type

passwd and enter your new root Password.

Bildschirmfoto 2013-07-06 um 18.02.47

thats it

reboot your machine with reboot -f and you are done!

best regards IT-Securityguard Team






Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.