home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / ultrix / 6702 < prev    next >
Encoding:
Text File  |  1992-09-07  |  1.6 KB  |  35 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!darwin.sura.net!gatech!psuvax1!news.cc.swarthmore.edu!hirai
  3. From: hirai@cc.swarthmore.edu (Eiji Hirai)
  4. Subject: multiple yppasswd requests corrupting NIS passwd?
  5. Message-ID: <T12PBZH7@cc.swarthmore.edu>
  6. Sender: news@cc.swarthmore.edu (USENET News System)
  7. Nntp-Posting-Host: gingko
  8. Organization: Information Services, Swarthmore College, Swarthmore, PA, USA
  9. Date: Fri, 4 Sep 1992 19:57:02 GMT
  10. Lines: 23
  11.  
  12. DEC 5000/200, Ultrix 4.2 is NIS master to several NIS clients which are also
  13. DEC 5000/200 with Ultrix 4.2.
  14.  
  15. We distribute the passwd database via NIS (yes, NIS, sigh).  It seems like
  16. the NIS database got corrupted today.  We have 2500 entries in /etc/passwd
  17. but ypcat passwd on the NIS client just showed 4 entries.  I touched
  18. /etc/passwd on the NIS master and did a ypmake and this cleared the problem.
  19.  
  20. How did this happen?  More pointedly, if two people do a yppasswd from a
  21. client, does the NIS master bother to check to see if the NIS databases are
  22. being written to before doing doing ypmake?  Could the two yppasswd requests
  23. have been trying to write to the NIS files simultaneously?
  24.  
  25. I looked at /var/yp/Makefile and didn't find any sort of shell-level locking
  26. at all.
  27.  
  28. Any clues?
  29.  
  30. --
  31. Eiji Hirai <hirai@cc.swarthmore.edu>    :     :    :   :  : :: ::: :::: :::::
  32. Unix Hacker for Swarthmore College      :     :    :   :  : :: ::: :::: :::::
  33. Information Services, Swarthmore, PA, USA.      Copyright 1992 by Eiji Hirai.
  34. I don't speak for Swarthmore College.                    All Rights Reserved.
  35.