sudo problema
Scott Sweeny
ssweeny at gmail.com
Thu Dec 15 19:24:18 UTC 2005
On 12/11/05, Dylan Stamat <dylans at gmail.com> wrote:
> I wanted to change my hostname, so I edited:
> /etc/hostname
>
> ... and update the name.
> Then, when I rebooted, it gave me an error saying the hostname wasn't
> correct.
>
> I forgot to edit the /etc/hosts file to update the name in there are well !
>
> Now, doing "sudo" tells me that it can't get the correct hostname
> "gethostbyname() doesn't return the correct value".... and I have no way to
> edit the /etc/hosts file, as I don't have permissions.
>
> Any ideas ?
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
>
Booting into the recovery kernel should give you a root shell. From
there you can edit your hosts file.
~Scott
More information about the ubuntu-users
mailing list