According to Sony Lloyd Ponton: While burning my CPU.
> 
> Hi,
> In slackware I can change the host name of my machine in
> /etc/rc.d/rc.M..where can I find that name in redhat linux 4.2. Cause I was

Well actualy you cant change it in rc.M, what you may have done is changed
 echo "darkstar.frop.org" > /etc/HOSTNAME
to your hostname, this will only work if you have no file called
/etc/HOSTNAME, the if statement 'if [ ! -r /etc/HOSTNAME ];' only echo's
darkstar.frop.org when the file /etc/HOSTNAME does not exsist.
You need to edit /etc/HOSTNAME.

The following statement in rc.M cuts any fields of the hostname after the
first dot. So the standard prompt you see on your screen would have 'Sony#'
dirived from Sony.Lloyd.org

> searching in vain for rc.M and coulndt not find it on
> my redhat 4.2 box.
> 

You wont find it because its not there in redhat, if your machine is on a
local network or LAN, edit
/etc/sysconfig/network
HOSTNAME=

and edit /etc/HOSTNAME  to reflect your hostname.
My_hostname.org


-- 
Regards Richard.
[EMAIL PROTECTED]

Reply via email to