Return to BSD News archive
Xref: sserve comp.sys.sun.misc:11691 comp.sys.sun.admin:24514 alt.sys.sun:8494 comp.unix.bsd:13281 comp.unix.admin:16542 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!news.Hawaii.Edu!ames!kronos.arc.nasa.gov!ken From: ken@kronos.arc.nasa.gov (Kenneth H. Simpson) Subject: Re: Help with NIS Sun munged by 'hostname' .. _PLEASE_ Message-ID: <1994Jan18.212020.23383@kronos.arc.nasa.gov> Sender: usenet@kronos.arc.nasa.gov (usenet@ptolemy.arc.nasa.gov) Nntp-Posting-Host: poincare.arc.nasa.gov Organization: NASA/ARC Information Sciences Division References: <1994Jan11.163433.26795@mnemosyne.cs.du.edu> Date: Tue, 18 Jan 1994 21:20:20 GMT Lines: 51 In article <1994Jan11.163433.26795@mnemosyne.cs.du.edu> croten@nyx.cs.du.edu (Charles Roten) writes: >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) The hostname should be set in /etc/hostname.le0 or something similar - perhaps hostname.ie0. -- ============================================================================== Kenneth Simpson NASA Internet: ken@poincare.arc.nasa.gov Ames Research Center, MS/269-1 UUCP: ames!poincare!ken Moffett Field, CA 94035-1000