Reset root password on linux


What do you need?
Linux live cd (Ubuntu, Fedora,…)
What to do?
1. Boot with linux live cd
2. Start terminal and type;

# sudo su
# mount /dev/sdaX /mnt                                 X - root partition
# chroot /mnt
# passwd (type new root password)
# umount /mnt

3. Reboot the system


Leave a Reply