home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sun / admin / 8387 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.8 KB  |  49 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!stanford.edu!ames!nsisrv!tron!css
  3. From: css@tron.stx.com (Chris Shenton)
  4. Subject: How to autorebuild yp data in response to yppasswd?
  5. Message-ID: <CSS.92Nov18102735@tron.stx.com>
  6. Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
  7. Nntp-Posting-Host: tron.stx.com
  8. Organization: Hughes/STX, Lanham, MD
  9. Date: Wed, 18 Nov 1992 15:27:35 GMT
  10. Lines: 37
  11.  
  12. I've been asked to set up a couple Suns and am having problems getting
  13. the rpc.yppasswdd to automatically rebuild the yp maps after a user
  14. changes his/her info with a yppasswd command. The manual and manpages
  15. conflict in how to set this up and none of the permutations I have
  16. tried work.
  17.  
  18. Both indicate I need add startup of rpc.yppasswdd in /etc/rc.local,
  19. and add the `-m' flag to automatically re-make in the /var/yp
  20. directory from the source passwd file which I keep in /var/etc/passwd.
  21. Here's my attempt -- with flames -- any ideas?  
  22.  
  23. Thanks.
  24.  
  25.  
  26.  
  27. From /etc/rc.local:
  28.  
  29. # Change and update the NIS passwd information in response to
  30. # yppasswd request. This should update the /var/etc/passwd source
  31. # then cause an automatic make in the /var/yp directory. It could
  32. # assume the /var/yp/Makefile explicitely defines the DIR to point to
  33. # our passwd source directory, /var/etc/passwd. Otherwise, we should be
  34. # able to specify it by saying ``DIR=/var/etc'' after the `-m'.
  35. #
  36. # Unfortunately, it does *NOT* and the paper manual and online manpage
  37. # conflict, and neither cause the automatic make. They do, however,
  38. # update the /var/etc/passwd file, but that becomes out of sync with
  39. # the /var/yp data, so further changes become impossible due
  40. # to invalid passwords. Why no update??
  41.  
  42. if [ -f /usr/etc/rpc.yppasswdd -a -d /var/yp/$dname ]; then
  43.       rpc.yppasswdd /var/etc/passwd -m DIR=/var/etc ; echo -n ' rpc.yppasswdd'
  44. fi
  45.  
  46.  
  47. --
  48. -- Chris Shenton        css@tron.stx.com        Hughes/STX 301-794-5490
  49.