On Tuesday 07 May 2002 19:08, Nadav Har'El wrote:
> On Tue, May 07, 2002, Amir Tal wrote about "Re: Nicknames for my Hostname":
> > after "hostname nadav.look.at.this" the hostname DID change, and it will
> > stay that way until the next time it will be changed. reboot will NOT set
> > it back to localhost.
>
> Did you actually try this? I would bet that a reboot *will* revert it back
> to localhost (or whatever you had as a hostname previously).

would i be agruing with you if i didnt try ? ;)
i did, and it does last. no changes after reboot.

>
> On the other hand, just changing /etc/sysconfig/network won't have any
> affect on the current running kernel - if you don't want to reboot for
> the change to take affect (as they in Windows), you'll need to use the
> hostname command too.
>
> > > I find that very hard to believe. It is not the "Unix Way". And what
> > > happens if two people are logged in at the same time? Logging out
> > > (whatever that means) should not have such effects.
> >
> > like i said - other users will be effected in their next login.
> > this is RH72 btw... same goes for mandrake 8.2 and suse 7.3 .
> > didnt try on anything else (yet)
>
> "hostname" changes the host name immediately, there is no need to wait for
> the next login - just run uname -n (or hostname) to see that it changed
> immediately, or run "bash" (or another shell) if you just *have* to see
> the correct prompt. It has nothing to do with logging in or out.

no argument there. RH7.0, however,  wanted a complete logout for the effect to 
take place, in 7.2 reloading "bash" is enough.
i didnt investigate this enough to say why.

-- 
-----------------------------------------------
[root@localhost /]# make love
make: stop : dont know how to make love
[root@localhost /]#ls
Amir Tal,
ICQ : 15748705
http://www.whatsup.org.il
-----------------------------------------------

================================================================To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to