Linux root password - MdNor/rocksoft GitHub Wiki

Forgotten root password

1) Boot

2) Press any key to halt boot process

3) Press e to edit command in grub

4) Choose the item with vmlinuz in it and press e

5) Type single or init 1

6) Type e and b to boot the system with the new argument. (The system will boot into single user mode and you will see bash prompt)

7) Type passwd and enter new root password

8) Type reboot

Change root password

1) Open terminal and login as root

2) Type passwd and enter new root password

3) Type reboot