I sorted it out in the end. I managed to lock myself out of the command line because I'm an idiot. I used the web interface to run a one-liner and then remove the password with:
echo 'root:root' | sudo chpasswd
passwd -d root
Sorry for wasting your time.