Use a live distro which can boot from a cd or a USB stick. Change the sudo rights for the root folder (/) back. Then you should be able to use sudo as usual