*BSD News Article 25862


Return to BSD News archive

Xref: sserve comp.sys.sun.misc:11561 comp.sys.sun.admin:24128 alt.sys.sun:8490 comp.unix.bsd:13245 comp.unix.admin:16349
Newsgroups: comp.sys.sun.misc,comp.sys.sun.admin,alt.sys.sun,comp.unix.bsd,comp.unix.admin
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!news.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!usenet.coe.montana.edu!decwrl!uunet!mnemosyne.cs.du.edu!nyx!croten
From: croten@nyx.cs.du.edu (Charles Roten)
Subject: Help with NIS Sun munged by 'hostname' .. _PLEASE_
Message-ID: <1994Jan11.163433.26795@mnemosyne.cs.du.edu>
Followup-To: comp.sys.sun.misc,comp.sys.sun.admin,alt.sys.sun,comp.unix.bsd,comp.unix.admin
X-Disclaimer: Nyx is a public access Unix system run by the University
 	of Denver for the Denver community.  The University has neither
 	control over nor responsibility for the opinions of users.
Sender: croten@eosdata.gsfc.nasa.gov
Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
Date: Tue, 11 Jan 94 16:34:33 GMT
Lines: 37

A problem recently arose on a Sun 386i, running SunOS 4.0.2, belonging to 
a friend of mine.  His girlfriend was doing some work on it, running as 
'root'.  She inadvertantly used the 'hostname' command to change the name 
of the workstation.  The syntax, as best as she could recall, was 

    hostname chenxi

No problems were seen until the workstation was rebooted.  By default, Sun 
386i's run Yellow Pages (NIS).  And her mistake caused NIS to go bug-
whacky and fail to reboot in multi-user mode.  The problem surfaced during 
the loading of the YP daemons.  The error message was 

    yp server not responding for domain "YP.noname"; still trying

Now, I have a similar machine, and I have his system disk mounted as my 
system's auxiliary disk.  Hence, I can edit any file on his system disk 
to remove the corruption.  I know his original system's name.  Now for 
the big question.  

What file(s) did 'hostname' modify ???  I first checked /etc/rc.local.  No 
soap.  Then I did a 'grep -e chenxi *' in /etc.  No soap.  Where in the 
heck did 'hostname chenxi' do its dirty work ?!?!?  

Once I know this, my friend's system disk will be golden _very_ soon.  

If you respond by email, please do so to my NASA adress: 

    croten@eosdata.gsfc.nasa.gov

to save disk space on nyx's chronically diskfull system.  

Thanks in advance.  

--
Charles D. Roten               | Hughes STX Inc.
croten@nyx.cs.du.edu           | NASA GSFC (Hurrah DAAC!)
croten@eosdata.gsfc.nasa.gov   | (301) 286-4413 (w), (301) 317-0782 (h)