Re: Cannot change hostname permanently
On Mon, 02 Oct 2006 11:23:22 +0100
Chris Lale <chrislale@untrammelled.co.uk> wrote:
[...]
>
> The original hostname is "earth". I want to change it to "desktop".
> This is what happens:
>
> # hostname
> earth
>
> # hostname desktop
> # hostname
> desktop
>
> # shutdown -r now
>
> During reboot I see (blink and you'll miss it)
>
> INIT: version 2.86 booting
> Setting hostname to 'earth' ... done
>
> The above two consecutive lines do not appear in dmesg output.
>
> # hostname
> earth
>
> Chris.
>
>
The output you quote above is the result of init invoking
/etc/init.d/hostname.sh start
What happens when you do this manually? Are there any weird permissions
on the file /etc/hostname?
--
Liam
Reply to: