1847916 Members
2854 Online
104021 Solutions
New Discussion

Re: NIS getting started

 
u856100
Frequent Advisor

NIS getting started

Ok lady and gent gurus, a few questions :

1- In my first attempt to setup NIS, just after issuing ypinit -m on the master (the same with ypinit -s on the slave), I receive an error message complaining about not knowing how to make /etc/auto_master.

2- I am aware og the nsswitch.conf file, but was curious as to whether I have to create this manually, or should I expect autocreation on/during NIS setup completion?

3- I have tried to modify the passwd file on the master NIS server and update the associated maps using #ypmake NOPUSH=1 passwd to avoid updating the slave (so that I can run ypxfr and manually pull the update across), but the slaves passwd map is still updated despite explicitly stating the NOPUSH command?
I have also manually killed the rpc.yppasswdd daemon to prevent this (is that correct?).
What I am trying to do is update the passwd entry on the slave by pulling the update rather than having the master push.

sorry about the quantity of questions,any help whatsoever is appreciated!

thanks

john
chicken or egg first?
2 REPLIES 2
U.SivaKumar_2
Honored Contributor

Re: NIS getting started

hi,
does /etc/auto_master exists in your system. if not before giving ypinit.
#touch /etc/auto_master
The file /etc/nsswitch.conf exists by default . only thing to do , edit that file and assign the order for NIS for the local
host if your NIS server acts also as a NIS
slave.
when using ypmake command use PWFILE option .
PWFILE=/etc/passwd
the passwd file where you commited your changes.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Sukant Naik
Trusted Contributor

Re: NIS getting started

Hi,

As regards to nsswitch.conf, there is no default file which will be present.

Below is the files from a frest HP-UX 11.11 server.
# cd /etc
# ls nsswitch*
nsswitch.compat nsswitch.hp_defaults nsswitch.nisplus
nsswitch.files nsswitch.nis

So, when you install a fresh server, you need to copy the sample nsswitch.nis to nsswitch.conf
OR
use sam and there you can define the resolution process for hosts, passwd etc.

-Sukant
Who dares he wins