Operating System - HP-UX
1826047 Members
4326 Online
109690 Solutions
New Discussion

Re: I need to migrate the services from NIS to local

 
Guillermo Giron_1
New Member

I need to migrate the services from NIS to local

I need to eliminate service NIS in the server and the Workstation, In order to use them of local way.
Workstation is NIS Client...

What I need to do?

Please help me...

Thanks
3 REPLIES 3
Jeff Schussele
Honored Contributor

Re: I need to migrate the services from NIS to local

Hi Guillermo,

All you need to do is edit the /etc/nsswitch.conf file & set the services line to:

services: files

If you want it to check NIS if the service is not in the files then:

services: files [NOTFOUND=continue] nis

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Prashant Zanwar_4
Respected Contributor

Re: I need to migrate the services from NIS to local

Rename the /var/yp directory, I mean move it to some new name. And make necessary changes to /etc/hosts, /etc/nsswitch.conf. Stop all YP daemons which are running... I believe that is what you have to do. Rename your domainname file also.
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Jeff Schussele
Honored Contributor

Re: I need to migrate the services from NIS to local

OK - I may have misunderstood your question.
If you want to switch *all* the lookups from NIS then do this:

1) cp /etc/nsswitch.conf /etc/nsswitch.nis
2) cp /usr/newconfig/etc/nsswitch.files /etc/nsswitch.conf
3) /sbin/init.d/nis.client stop
4) edit /etc/rc.config.d/namesvrs & set
NIS_CLIENT=0

on the server do all the above..plus
5) /sbin/init.d/nis.server stop
6) edit /rc.config.d/namesvrs & set
NIS_MASTER_SERVER=0
NIS_SLAVE_SERVER=0

Optionally you could remove the domain name by setting
NIS_DOMAIN=""

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!