Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1+some 2/3/84; site dual.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!dual!fair From: fair@dual.UUCP (Erik E. Fair) Newsgroups: net.bugs.uucp Subject: Re: How to change nodenames Message-ID: <801@dual.UUCP> Date: Tue, 11-Sep-84 23:08:42 EDT Article-I.D.: dual.801 Posted: Tue Sep 11 23:08:42 1984 Date-Received: Fri, 14-Sep-84 20:53:11 EDT References: <750@enea.UUCP> Organization: Dual Systems, Berkeley, CA Lines: 57 >> From: ber@enea.UUCP (Bjorn Eriksen) >> Subject: How to change nodenames >> Date: Mon, 10-Sep-84 19:51:49 PDT >> Organization: ENEA DATA, Sweden >> >> Vendors shouldn't send out systems with default names if there isnt't >> any way to change it locally. Does anyone know how nodenames are >> changed in different brands of Unix? The rules are as follows: Vanilla v7 UNIX: Change the name in uucp.h, whoami.h, and mail.c and recompile UUCP and /bin/mail. 2.8 BSD: Same as above 4.1 BSD: Same as above 4.2 BSD: Execute the hostname command. 2.9 BSD: Same as above(???) UniPlus v7: Edit /usr/lib/uucp/SYSTEMNAME Make certain that your release has the /bin/mail that uses this, instead of the compiled in name ``UniSoft''. This bug was fixed 1.5 years ago, and if your system mfgr hasn't gotten a new release since then, it's their own fault. XENIX: Does anyone know whether they fixed this? Or Are they just like Vanilla v7 (without source, of course)? System III: Execute /etc/chgnod and reboot the system. chgnod adb's the kernel, but you need to reboot to have it in core. UUCP and mail use the uname(2) system call to fetch this. Unfortunate that there isn't a system call to set it... System V: Same as above UniPlus System III/V: Same as above The bad guys right now are any 68000 system manufacturers who are still distributing v7 UniPlus with the old UniSoft /bin/mail with that compiled in name. I forced UniSoft to fix it quite some time ago (April of 1983), but not everyone has bothered to get the update... Does anyone know whether microsoft has fixed this problem in XENIX (either by going System III completely or by hacking it out into a file like UniSoft did for v7?) Erik E. Fair ucbvax!fair fair@ucb-arpa.ARPA dual!fair@BERKELEY.ARPA {ihnp4,ucbvax,hplabs,decwrl,cbosgd,sun,nsc,apple,pyramid}!dual!fair Dual Systems Corporation, Berkeley, California