Discussion:
setting up NIS
Gustavo Rios
2006-10-19 02:50:47 UTC
Permalink
Dear list members,

i am setting a personal NIS server. At the momment; the output for the
command line is the following:

# ypinit -m mojave
Server Type: MASTER Domain: mojave

Creating an YP server will require that you answer a few questions.
Questions will all be asked at the beginning of the procedure.

Do you want this procedure to quit on non-fatal errors? [y/n: n] y

At this point, we have to construct a list of this domain's YP servers.
etosha is already known as master server.
Please continue to add any slave servers, one per line. When you are
done with the list, type a <control D>.
master server : etosha
next host to add: ^D
The current list of NIS servers looks like this:

etosha

Is this correct? [y/n: y] y
Building /var/yp/mojave/ypservers...
Running /var/yp/mojave/Makefile...
updated passwd
updated group
updated hosts
updated ethers
updated networks
updated rpc
updated services
updated protocols
updated netid
updated netgroup
updated amd.home
/var/yp/mojave/mojave-aliases: 40 aliases, longest 10 bytes, 568 bytes total
updated aliases

etosha has been setup as an YP master server without any errors.
# make
===> mojave
updated netid
yppush: could not get ypservers map
pushed netid
#


Ok, why the "yppush: could not get ypservers map" error message is
being echoed ?

Thanks for your help.
DoN. Nichols
2006-10-20 00:32:41 UTC
Permalink
Post by Gustavo Rios
Dear list members,
i am setting a personal NIS server. At the momment; the output for the
# ypinit -m mojave
Server Type: MASTER Domain: mojave
[ ... ]
Post by Gustavo Rios
At this point, we have to construct a list of this domain's YP servers.
etosha is already known as master server.
Please continue to add any slave servers, one per line. When you are
done with the list, type a <control D>.
master server : etosha
next host to add: ^D
etosha
So -- you added no slave servers.

[ ... ]
Post by Gustavo Rios
etosha has been setup as an YP master server without any errors.
# make
===> mojave
updated netid
yppush: could not get ypservers map
pushed netid
#
Ok, why the "yppush: could not get ypservers map" error message is
being echoed ?
O.K. I'm not quite sure why the specific *wording* of the error
message, but I don't see a need to run make here, which pushes updated
maps to slave servers. Since you don't have any slave servers, why
push?

It may be that the ypservers map in this implementation strips
off the master server automatically prior to trying to push -- and
finding nothing left, it gives the above error message.

The real question is whether it does what you want otherwise?
Does it serve maps as it should?

You could try "ypcat -k ypservers" to see what it put in that
map. Maybe you should have not used the "quit on any errors" option.
I normally don't use it.

Granted, I've been running NIS servers only on Suns running
SunOs and later Solaris -- not on OpenBSD, so there may be something
different there -- but it should not be *too* different.

I like the "ypinit -u" addition, which I see documented in
OpenBSD 3.9. Hmm ... all the way back to 3.4 at least.

That is nice -- because it is a pain to add more slave servers,
or to remove them, from a running instance of yp under Solaris or SunOs.

Enjoy,
DoN.
--
Email: <***@d-and-d.com> | Voice (all times): (703) 938-4564
(too) near Washington D.C. | http://www.d-and-d.com/dnichols/DoN.html
--- Black Holes are where God is dividing by zero ---
Loading...