1834169 Members
2411 Online
110064 Solutions
New Discussion

Re: NIS Query

 
SOLVED
Go to solution
Jim Adamson
Frequent Advisor

NIS Query

Hi,
I am looking for some advice re NIS.

What is the easiest way to change a NIS slave server to a NIS master server (and make the current master server a slave).

Is it a case of changing /etc/rc.config.d/namesvrs and moving the relevant files (/etc/hosts; etc passwd; etc/netgroup etc..) then building the NIS master fresh, or is there another way.

thanks,
Jim.
Oh dear
2 REPLIES 2
Sachin Patel
Honored Contributor
Solution

Re: NIS Query

Hi Jim,
The one way do this is. Copy your original files like passwd, groups, netgroup, aliases etc... from your current master nis server to new system. Remember this is plain files not a nis map.
Then run ypinit -m on new system this will build new maps from new file that you just copy.

Now on your current nis master server run ypinit -s new_nis_servername this will pulls the map from new server.

Yes, change the /etc/rc.config.d/namesvrs file accordingly.

Sachin
Is photography a hobby or another way to spend $
linuxfan
Honored Contributor

Re: NIS Query

Hi,

If you have the Hal Stern's O'Reilly book "Managing NFS and NIS", there is a section about changing NIS Master Servers, it will be very helpful to you.

Check out this link as well
http://www.dutchworks.nl/htbin/hpsysadmin?h=3&dn=40848&q=NIS%20servers%20%20SUMMARY&fh

-HTH
I am RU
They think they know but don't. At least I know I don't know - Socrates