Subject: RE: RE: YP HELP
To: port-pmax@netbsd.org <port-pmax@netbsd.org>
From: Mark Rewis <markrewis@home.com>
List: port-pmax
Date: 11/01/1999 19:06:48
Just on the off chance that something was screwed up with the
nsswitch.conf
I changed it FROM:
group: compat
group_compat: nis
hosts: dns files
netgroup: files [notfound=return] nis
networks: files
passwd: compat
passwd_compat: nis
TO:
group: nis
hosts: nis
netgroup: files [notfound=return] nis
networks: files
passwd: nis
Everything works like a charm now!!!
I pretty much figure this is an indication of my general ignorance (
apart from the man pages )about the nsswitch.conf file.
THANX for all the help everybody.
rewis
> > >I am totally stumped!!! Really don't know what to do. Using hesiod
> > >isn't an option.
> > >If anybody can give my any idea about any method of diagnosing the
> > >problem, it would be
> > >greatly appreciated.
> > >rewis
> > >I am attempting implement yp on my lan of 5000/240's.
> > >I built the yp service with ypinit -m
> > >I have done 'make' in /var/yp ( several times, just to make sure ).
> > >The various map info appears to being yppush'ed correctly.
> > >The yp server daemon appears to be running running correctly.
> > >ypbind on the client machines appears to bind correctly to the server (
> > >only have a master no slaves ).
> > >The various maps appear to be accessible to the clients:
> > > ypcat passwd, ypcat group, ypcat hosts show the correct info from the
> > >server.
> > >
> > >yptest appears to run correctly.
> >
> > So `ypcat passwd' on the clients DTRT? You have /var/yp/securenet or
> > wherever it live configured correctly? Does NetBSD do
> > /var/yp/securenet ACLs on IP addresses for YP?
> >
> >sorry, I'm clueless on securenet ( I'm quite a piker at this ).
> > >ypwhich shows the master correctly.
> > >ypwhich -m shows the correct maps -vs- master.
> > >domainname shows the correct domain.
> >
> > >On the clients
> > >I have appended the passwd file with +:*:0:0:::
> > > and the group file with +:*:*.
> > >
> > >
> > >Having said all that:
> > > I cannot log into the client machines as anyone listed
> > >in the
> > >master's hosts file ( anyone that is not in the client
> > >'s local host
> > >file ). If I login as root and try to su to a user I get:
> > > >>su - rewis
> > > >> unkown login rewis
> > >
> > > It appears that the various local files ( hosts, group,
> > > passwd )
> > >are not being replaced or appended, respectively ( once aga
> > >in ypcat
> > >shows
> > > valid info for passwd and group).
> > >
> > >I realize this is scant information, but any help or just a place to
> > >start would be GREATLY appreciated ( I have 'Managing NFS and NIS' from
> > >O'Reilly).
> >
> > If `ypcat passwd' on the clients work, they can get at the data;
> > they're just not using it. What does /etc/nsswitch.conf have on the
> > clients for passwd? Did someone edit it away from "passwd: compat"?
> > nsswitch.conf appears o.k.
> > >group: compat
> > >group_compat: nis
> > >hosts: dns files
> > >netgroup: files [notfound=return] nis
> > >networks: files
> > >passwd: compat
> > >passwd_compat: nis
> > >THANX
> > >rewis