home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sun / admin / 8405 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  2.0 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!ames!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!usc!rpi!bu.edu!nntp-read!jc
  2. From: jc@raven.bu.edu (James F. Cameron)
  3. Newsgroups: comp.sys.sun.admin
  4. Subject: Re: How to autorebuild yp data in response to yppasswd?
  5. Message-ID: <JC.92Nov18143651@raven.bu.edu>
  6. Date: 18 Nov 92 19:36:51 GMT
  7. References: <CSS.92Nov18102735@tron.stx.com>
  8. Sender: news@bu.edu
  9. Organization: What do you mean 'That *can't* be done????'
  10. Lines: 42
  11. In-reply-to: css@tron.stx.com's message of 18 Nov 92 15:27:35 GMT
  12.  
  13.  
  14. >>>>> "Chris" == Chris Shenton <css@tron.stx.com> writes:
  15.  
  16.   Chris> Nntp-Posting-Host: tron.stx.com
  17.  
  18.   Chris> I've been asked to set up a couple Suns and am having
  19.   Chris> problems getting the rpc.yppasswdd to automatically rebuild
  20.   Chris> the yp maps after a user changes his/her info with a yppasswd
  21.   Chris> command. The manual and manpages conflict in how to set this
  22.   Chris> up and none of the permutations I have tried work.
  23.  
  24.   Chris> Both indicate I need add startup of rpc.yppasswdd in
  25.   Chris> /etc/rc.local, and add the `-m' flag to automatically re-make
  26.   Chris> in the /var/yp directory from the source passwd file which I
  27.   Chris> keep in /var/etc/passwd.  Here's my attempt -- with flames --
  28.   Chris> any ideas?
  29.  
  30.   Chris> Thanks.
  31.  
  32. [...]
  33.  
  34.  
  35.   Chris> if [ -f /usr/etc/rpc.yppasswdd -a -d /var/yp/$dname ]; then
  36.   Chris> rpc.yppasswdd /var/etc/passwd -m DIR=/var/etc ; 
  37.  
  38. [...]
  39.  
  40. There is a bug in rpc.yppasswdd as it ignores the first argument which
  41. begins with a '-'.  The solution is to add '-nosingle' as the first
  42. argument as this is the default behaivor.  
  43.  
  44. Hope that helps!
  45.  
  46. James
  47. --
  48.             -- James Cameron  (jc@raven.bu.edu) (617) 353-2879
  49.                       
  50.     System Manager, Signal Processing and Interpretation Lab.  Boston, Mass  
  51. ------------------------------------------------------------------------------
  52. "But to risk we must, for the greatest hazard in life is to risk nothing.  For
  53. the man or woman who risks nothing, has nothing, does nothing, is nothing."
  54.     (Quote from the eulogy for the late Christa McAuliffe.)
  55.