On Fri, Sep 21, 2001 at 09:30:08PM +0000, Purple Shirt wrote:
Hello,
I set up an NIS server (SuSE 7.2). I thought I did it right like last time but of course it doesn't work.
# cat /etc/hosts.deny http-rman : ALL EXCEPT LOCAL portmap: ALL lockd: ALL mountd: ALL rquotad: ALL statd: ALL
# cat /etc/hosts.allow http-rman: localhost portmap: localhost, 192.168.1.0/255.255.255.0 lockd: localhost, 192.168.1.0/255.255.255.0 mountd: localhost, 192.168.1.0/255.255.255.0 rquotad: localhost, 192.168.1.0/255.255.255.0 statd: localhost, 192.168.1.0/255.255.255.0
# tail -2 /etc/passwd user:x:505:100:User Name:/home/user:/bin/bash +::::::
# tail -1 /etc/group +:::
# /usr/lib/yp/ypinit -m
At this point, we have to construct a list of the hosts which will run NIS servers. mail.mydomain.com 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: mail.mydomain.com next host to add: The current list of NIS servers looks like this:
mail.mydomain.com
Is this correct? [y/n: y] y We need some minutes to build the databases... Building /var/yp/nis.mydomain.com/ypservers... Running /var/yp/Makefile... gmake[1]: Entering directory `/var/yp/nis.mydomain.com' Updating passwd.byname... Updating passwd.byuid... Updating group.byname... Updating group.bygid... Updating rpc.byname... Updating rpc.bynumber... Updating services.byname... Updating services.byservicename... Updating netid.byname... gmake[1]: Leaving directory `/var/yp/nis.mydomain.com'
# /etc/init.d/ypserv start Starting ypserv .......done
# rpcinfo -p program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100004 2 udp 821 ypserv 100004 1 udp 821 ypserv 100004 2 tcp 824 ypserv 100004 1 tcp 824 ypserv 100009 1 udp 996 yppasswdd
# rpcinfo -u localhost ypserv program 100004 version 1 ready and waiting program 100004 version 2 ready and waiting
# domainname nis.mydomain.com
# yppasswd yppasswd: can't find the master ypserver: Can't bind to server which serves this domain
I'd love to hear where I made a mistake.
What is in your /etc/yp.conf file? Did you put your server there? -Kastus
mk