[SunHELP] NIS Configuration error

Marjun Rao sunhelp at sunhelp.org
Tue Nov 13 09:46:11 CST 2001


Hi Bruce

After making the changes, it worked fine.
Thanks a lot for you help

Regards
Mrao
----- Original Message ----- 
From: "Bruce Pullig"
<bpullig at houston.oilfield.slb.com>
To: <sunhelp at sunhelp.org>
Sent: Thursday, November 08, 2001 10:45 AM
Subject: Re: [SunHELP] NIS Configuration error


> Yes I faced this after jumpstarting a machine, then
trying to change the 
> NIS domain.  I too verified /etc/defaultdomain and
domainname.   If you 
> will look at the /usr/sbin/ypinit script you will
see that it is failing to 
> find /usr/bin/domainname and that is causing the
error.  I even tried to 
> put the full path in for domainname.  I'm not sure
why that didn't work, it 
> should have.
> 
> My solution was to change the following lines in
/usr/sbin/ypinit.  It 
> should fix your problem too.
> 
> ****Original lines****
> def_dom=`domainname`
> if [ $? -ne 0 ]
> then
>      echo "^GCan't get local host's domain name. 
Please check your path."
>          exit 1
> fi
> 
> ****Change to****
> def_dom=yourNISdomain
> 
> Good Luck
> 
> Bruce
> 
> -- 
> * * * * * * * * * * * * * * * * * * * * *
>    Bruce Pullig
>    Senior Systems Administrator
>    Schlumberger Oil & Gas Information Solutions
>    Data Management Center
>    5444 Westheimer, Suite 800, Houston, TX 77056
>    Phone: 713.350.4217  Fax: 713.350.4102
>    bpullig at slb.com
> * * * * * * * * * * * * * * * * * * * * *
> At 12:22 PM 11/8/2001, you wrote:
> >Hi admins
> >
> >Facing some strange problem while invoking ypinit
-m.
> >Invoking ypinit -m for the first time, gives me
this
> >error on Solaris8-108528-11.
> >/etc/defaultdomain and domainname both reflects the
> >correct domain.
> >
> ># ypinit -m
> >" Can't get local host's domain name.  Please check
> >your path. "
> >
> >Had anyone faced similar problem...?
> >
> >Regards
> >Mrao
> >
> >
> >
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Find a job, post your resume.
> >http://careers.yahoo.com
> >_______________________________________________
> >SunHELP maillist  -  SunHELP at sunhelp.org
> >http://www.sunhelp.org/mailman/listinfo/sunhelp
> 
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp

__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com



More information about the SunHELP mailing list