I have no
root password and I accidentally removed the
sudo privileges of the only account left.
NOTE: This procedure assumes that you have removed yourself from the
Boot a live CD. Mount your root partition containing /etc. Modify the mounted /etc/group file to have your user back in the sudo group. Umount and reboot.