1833758 Members
2304 Online
110063 Solutions
New Discussion

NIS init and startup

 
SOLVED
Go to solution
Umapathy S
Honored Contributor

NIS init and startup

Hi,
I am trying to use NIS under hpux11.

I want NIS only to take care of passwd and group info. The rest of it can take from /etc. I created a dir /etc/nispw to put passwd and group files. I ran ypmake with DIR pointing to /etc/nispw.

Now ypmake complains of not finding other files such as hosts, networks, rpc, services, protocols, netgroups etc.

Where should I configure so that ypmake doesnt bother about them.

thanks,
Umapathy

Arise Awake and Stop NOT till the goal is Reached!
3 REPLIES 3
Umapathy S
Honored Contributor

Re: NIS init and startup

After restarting nis.server and nis.client I ran ypcat passwd. This doesnt pull off common users from /etc/nispw/passwd and gives out only /etc/passwd.

Am I doing anything wrong here.

cheers
Umapathy

Arise Awake and Stop NOT till the goal is Reached!
Zeev Schultz
Honored Contributor
Solution

Re: NIS init and startup

1)check domainname (domainname).
2)go to /var/yp,see Makefile it has definitions,for example ALL_MAPS to build 'em all.I'd however just ignore messages from ypmake that it can't find map sources for hosts..etc (whatever you want use with NIS - define in /etc/nsswitch.conf WITHOUT "nis" of course).
3)when you run ypcat (on a client running ypbind) it looks for a nis server.Check that:
a)ypbind runs
b)ypwhich shows valid NIS server
c)ypserv runs on NIS server.

zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Umapathy S
Honored Contributor

Re: NIS init and startup

Thanks Zeev.

I read the manuals and fixed it. I changed the Makefile to reflect my preferences.

Now its running very much fine.

thanks,
Umapathy

Arise Awake and Stop NOT till the goal is Reached!