# Server setup for NIS - as done between duck_server and dnodes # duck_server is the server # This is NOT a script, but instructions, some of which was copied # out of .bash_history, and the rest written in pseudo code # Meryll Larkin 4/2/08 # Since I only did this once, the instructions are not well ordered # or commented # Install missing rpm to create an NIS server chown root:root ypserv-2.6-2.i386.rpm mv ypserv-2.6-2.i386.rpm /root cd rpm -Uvh ypserv-2.6-2.i386.rpm echo "domain dnodes server duck_server">>/etc/ypserv.conf cd /var/yp ls # BY the end of the build and configuration process # there should be a directory in here with same name as # in this case, that would be "dnodes" /var/yp/dnodes service ypserv status service ypserv status vi Makefile make service ypserv start service portmap status service yppasswdd status service yppasswdd start make dnodes service ypserv start service ypserv status service ypserv stop service ypserv start make service ypserv start service ypservd start service ypserv status # End install missing rpm ypwhich nisdomainname dnodes ypwhich service ypbind start service ypserv start service ypbind start service ypserv restart nisdomainname dnodes chkconfig --levels 2345 ypserv on chkconfig --list |grep portmap chkconfig --levels 345 ypserv on service yppasswdd status chkconfig levels 345 yppasswdd on chkconfig levels 345 rpc.yppasswdd on chkconfig --levels 345 rpc.yppasswdd on chkconfig --levels 345 yppasswdd on chkconfig --list |grep yp rpcinfo -u localhost ypserv /usr/lib/yp/ypinit -m echo "NISDOMAIN=dnodes">>/etc/sysconfig/network # vi yp.conf echo "ypserver duck_server" >>/etc/yp.conf echo "domain dnodes server duck_server" >>/etc/yp.conf edit /var/yp/Makefile edit /var/yp/securenets and /etc/ypserv.conf * you don't use yppasswd on the server machine, but on the client machines cd /var/yp ./ypbuild passwd ./ypbuild group # set up duck_server for NIS authentication run: /usr/lib/yp/ypinit -m server needs to run ypserv and portmapper [root@duck_server yp]# chkconfig --list |grep yp ypbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off yppasswdd 0:off 1:off 2:off 3:off 4:off 5:off 6:off ypserv 0:off 1:off 2:off 3:on 4:on 5:on 6:off ypxfrd 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@duck_server yp]# chkconfig --list |grep rpc rpcgssd 0:off 1:off 2:off 3:on 4:on 5:on 6:off rpcidmapd 0:off 1:off 2:off 3:on 4:on 5:on 6:off [root@duck_server yp]# chkconfig --list |grep port portmap 0:off 1:off 2:off 3:on 4:on 5:on 6:off