I did something really stupid and changed /etc/hostname whilst in GNOME, rebooted and now I have no administrator functionality as sudo is crippled. I'm running Dapper BETA.
If I enter hostname at the command prompt, I get the following:
All of the other hostname switches return the same value. uname -n is the same.
If I try and use sudo at the command prompt, I get:
me@(none):/etc$ sudo vi hostname
sudo: unable to lookup (none) via gethostbyname()
I think it has something to do with an invalid hostname, which was -~me~-
I don't think it likes the tilde's.
Is there a way I can reboot at init 1 WITHOUT requiring superuser access? I know with GRUB before on Hoary I could add "init 1" or whatever it was to the kernel boot line, but there isn't that option to get into GRUB anymore.
Many thanks in advance,