sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #92151
NIS problemer
Hejsa guruer,
Er ved for første gang at rode med NIS på 4 produktionsmaskiner. Har problemer med at lade en klient finde NIS serveren (skvx0005). Jeg har gjort flg på serveren:
1. "domainname NIS_halA"
2. "/etc/rc.d/init.d/ypserv start" (gav intet OK og kunne ikke se "ypserv" med ps -A |grep yp ??)
3. "/etc/rc.d/init.d/ypinit -m". Tastede ctrl-D, da den fandt den rette server skvx0005. Den failede en masse, se teksten nedenfor signaturen.
4. "/etc/rc.d/init.d/ypbind start". Ingen fejlmelding.
På klienten kan der ikke etableres forbindelse med serveren. Har forsøgt:
1. "domainname NIS_halA"
2. "/usr/lib/yp/ypinit -s skvx0005". Kan ikke etablere forbindelse
3. "/etc/rc.d/init.d/ypbind start". Kan ikke etablere forbindelse til server.
4. Har prøvet at tilrette /etc/yp.conf til at pege på skvx0005
Nogen ideer??
Best Regards/Med venlig hilsen
Torben Andersen
Production Engineer
Flextronics
Special Business Solutions
Hjortevej 4
DK-7800 Skive
Denmark
-------------------clip fra shell på server--------------------------------
[root@skvx0005 maint]# /usr/lib/yp/ypinit -m
At this point, we have to construct a list of the hosts which will run NIS
servers. skvx0005 is in the list of NIS server hosts. Please continue to add
the names for the other hosts, one per line. When you are done with the
list, type a <control D>.
next host to add: skvx0005
next host to add:
The current list of NIS servers looks like this:
skvx0005
Is this correct? [y/n: y] y
We need a few minutes to build the databases...
Building /var/yp/(none)/ypservers...
Running /var/yp/Makefile...
gmake[1]: Entering directory `/var/yp/(none)'
Updating passwd.byname...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating passwd.byuid...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating group.byname...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating group.bygid...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating hosts.byname...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating hosts.byaddr...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating rpc.byname...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating rpc.bynumber...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating services.byname...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating services.byservicename...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating netid.byname...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating protocols.bynumber...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating protocols.byname...
failed to send 'clear' to local ypserv: RPC: Unknown hostUpdating mail.aliases...
failed to send 'clear' to local ypserv: RPC: Unknown hostgmake[1]: Leaving directory `/var/yp/(none)'
skvx0005 has been set up as a NIS master server.
Now you can run ypinit -s skvx0005 on all slave server.
[root@skvx0005 maint]# /etc/rc.d/init.d/ypbind start
[root@skvx0005 maint]# ypcat -x
Use "ethers" for map "ethers.byname"
Use "aliases" for map "mail.aliases"
Use "services" for map "services.byname"
Use "protocols" for map "protocols.bynumber"
Use "hosts" for map "hosts.byname"
Use "networks" for map "networks.byaddr"
Use "group" for map "group.byname"
Use "passwd" for map "passwd.byname"
Legal Disclaimer:
The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message