"Jeremy C. Reed" wrote:
>
> On Thu, 27 Nov 2003, Alan Dayley wrote:
>
> > How do I change charlie's name to joe, permanently so he will ever after boot
> > as joe?
>
> grep -r hostname /etc
>
> Find where hostname is ran to set the hostname. See how it is configured.
>
> Look at /etc/sysconfig/network.
>
> Jeremy C. Reed
> http://www.reedmedia.net/
>
I would expand that to:
cd /
grep -rl `hostname *
when you find all the places where your hostname appears and change
them, reboot. This is because many services are based on the server's
name, and if that changes, all kinds of things break.
Also, you might want to put a note into syslog if you use your logs for
accountability and audit.
I changed the name of a box a few months ago and was finding remnants of
its old name all over the place for a couple weeks. It's amazing what
users (and admins) do. That command (above) would have saved me a
little aggravation.
Cheers!
George Toft
Computer Security
AGD,llc
www.agdllc.com
623-203-1760