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). 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. -- Nadav Har'El | Tuesday, May 7 2002, 26 Iyyar 5762 [EMAIL PROTECTED] |----------------------------------------- Phone: +972-53-245868, ICQ 13349191 |All those who believe in psychokinesis, http://nadav.harel.org.il |raise my hand. ================================================================= 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]