home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / YP-CLIEN.REA < prev    next >
Encoding:
Text File  |  1995-04-20  |  2.4 KB  |  76 lines

  1. This implementation of yp for linux is based on the yp-patches for
  2. NetBSD from Theo Deraadt and an independend port of Hlu. 
  3.  
  4. This implementation only provides NIS _clients_. You must already have
  5. a NIS server running somewhere.
  6.  
  7. The binary of yppasswd is not included, it caused our yppasswdd on a Sun to
  8. hang.
  9.  
  10.  
  11. How to set up your system as a NIS client:
  12.  
  13. 1. Set your NIS domain with domainname at boottime.
  14.  
  15. Example:
  16. if [ -x /etc/defaultdomain ] ; then
  17.     domainname `cat /etc/defaultdomain`
  18. fi
  19. You should create the file /etc/defaultdomain with the command
  20.     echo -n your_domain_name > /etc/defaultdomain
  21. Old versions of the domainname program could not deal with a \n at the
  22. end of /etc/defaultdomain and made it part of the domainname. This is
  23. fixed in this version. 
  24.  
  25. Please do _not_ confuse the NIS domainname (set with the domainname
  26. command, which uses setdomainname()) with the DNS domain name (set in
  27. /etc/resolv.conf). Some distributions falsely assume these are the
  28. same. This is wrong.
  29.  
  30. 2. Find a NIS server. 
  31. Here you have 2 possibilities. If your NIS server is in your local
  32. net, you can simply start ypbind. It will use broadcast to find a
  33. servers. You can check for a NIS server with the command
  34.     rpcinfo -b 100007 2
  35.  
  36. Starting with this release, you can enter the name of your NIS server
  37. to the file /etc/yp.conf. If /etc/yp.conf exists when ypbind is
  38. started, it will search it for lines formed like
  39.     ypserver <Name_of_ypserver>
  40. ypbind then tests if the given servers are up and serve the NIS
  41. domain. If one of the servers responds, it will use it for all further
  42. NIS requests, else it will fallback to broadcast. This gives you the
  43. possibility to use a server behind a gateway. 
  44.  
  45. 3. Start ypbind
  46. The recommended way of starting ypbind is as follows:
  47.  
  48. if [ -d /var/yp ] ; then
  49.     /usr/sbin/ypbind ;    echo ypbind
  50. fi
  51.  
  52. Be sure to set the domainname before calling ypbind and to append
  53. +:*:0:0:::
  54. to /etc/passwd, and
  55. +:*:0:
  56. to /etc/group.
  57.  
  58. Don't forget to create the directory /var/yp.
  59. Make sure the portmapper is running before ypbind gets startd.
  60.  
  61. You can use NIS for your host map by adding nis to /etc/host.conf.
  62. Example:
  63.  
  64. order hosts nis bind
  65. multi on
  66.  
  67. This will look into /etc/hosts first, then ask nis and then the domain
  68. name server.
  69.  
  70. Feel free to correct any errors in the programs or documentation
  71. (including spelling and grammar!)
  72.  
  73. Comments, corrections, enhancements, patches, praise, money etc. to 
  74. swen@uni-paderborn.de, flames to /dev/null
  75.  
  76.