On 24 Mar 2006 20:24:55 -0800, raam wrote:
> Dear all,
> I am new to linux.Whenever I login linux displayed'root@localhost'
> but now it is (E-Mail Removed) feel someonee would have worked in my
> computer .
Host name change can come via the dhcp server if you ask for it and it
supports the request.
> How to get bach 'root@localhost'.How to completely delete info and
> other settings of host9.What is this meanining(Host9).Is there
> anyway to protect the pc from all these .
I think localhost should not be the host name. I always name the host
and disable dhcp from changing the name. That can keep other apps happier.
You may want to read
http://www.catb.org/~esr/faqs/smart-questions.html
There are 200+ linux distributions which have different config
files/locations and commands.
Do bookmark this very large, Frequently Asked Questions (faq) search engine
http://groups.google.com/advanced_group_search
key words(s) in the first box
*linux* in Newsgroup box. You need to use the two
asterisks around linux, pick English
On my Mandriva Linux 2006 Official I have
$ cat /etc/sysconfig/network
HOSTNAME=wb.home.invalid <==== sets hostname on boot
NETWORKING=yes
NETWORKING_IPV6=no
GATEWAYDEV=eth0
GATEWAY=192.168.2.1
$ head -4 /etc/hosts
127.0.0.1 localhost
192.168.2.1 fw.home.invalid fw
192.168.2.10 wb.home.invalid wb <=======
192.168.2.12 wb1.home.invalid wb1
Depending on release and dhcp client, adding
NEEDHOSTNAME=no
in the dhcp nic (/etc/sysconfig/network-scripts/ifcfg-ethX)
keeps the dhcp client from changing host name.