I have a server with no screen or keyboard. I'm able to access it through SSH from my laptop. Recently, I messed up my /etc/sudoers file. That means I can't use sudo. To fix my sudoers file, I need admin access.
Normally, I would just boot into a recovery console and edit the file. But this requires me to select the GRUB entry, which I am unable to do without a keyboard or screen. I can't borrow one, either.
I thought that I could start up my server with a LiveCD and SSH into. Then I would mount my hard drive and edit /etc/sudoers so it works. Unfortunately, the regular Ubuntu LiveCD doesn't have SSH installed by default. So, I thought a custom LiveCD would do well. I've already tried remastersys backup inside a virtual machine, but it doesn't allow commandline-only systems.
So basically, I'm looking to create a LiveCD which I can SSH into (remember, blank passwords cause problems), and which doesn't run X. I'd appreciate it if anyone could point me in the right direction.