Like Many Others, I Had Been Fighting with The Error ...
"Can't Enumerate Maps from
... generated when Running ...
/ usr / lib / yp / ypinit -s
... to configure a red Hat NIS SLAVE Server.
I resolved the problem by pulling together a couple of separate suggestions The essence of the problem is that the / usr / lib / yp / ypinit script does not have a good reputation Two consecutive lines were originally as follows.!:
# Maps = `Ypwhich -m | Egrep $ master $ | awk '{printf ("% s ", $ 1)}' -` Maps =` $ ypbindir / yphelper --maps $ master`
Changing The as Follows Allows You To Run THE / USR / LIB / YP / YPINIT -S
Maps = `YPWHICH -M | EGREP $ MASTER | awk '{printf ("% s ", $ 1)}' -` # Maps =` $ YPBISDIR / YPHELPER --MAPS $ MASTER`
The Specific Changes Are: - Use the 'Ypwhich' line instead of the 'yphelper' line. - Remove the extraneous '$' after 'master'.
Hope this is of help to someone! It Took me long enough to sort it out.