home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3530 < prev    next >
Internet Message Format  |  1991-06-23  |  2KB

  1. From: df@sei.cmu.edu (Dan Farmer)
  2. Newsgroups: alt.sources
  3. Subject: perl COPS, one line patch -- apply, or it won't work...
  4. Message-ID: <27560@as0c.sei.cmu.edu>
  5. Date: 23 Jun 91 05:33:39 GMT
  6.  
  7.  
  8.   With a brilliance seldom seen outside the net, I forgot to take
  9. out my test password file, and comment out a critical line in the
  10. configuration file, "cops.cf".  There is a line, 26, I think, that
  11. looks like this:
  12.  
  13. $GET_PASSWD = '/bin/cat passwd';
  14.  
  15.   It should be either commented out, or deleted, if you don't want
  16. it there.  You will get bogus results, unless you do (unless you
  17. happen to copy your own password file in the directory you're
  18. running cops from.)  The purpose of this is to check alternate password
  19. files, whether from other machines, shadow password files, or whatever.
  20. For instance, as a poor example, if you use NIS/yellow pages, you could
  21. say:
  22.  
  23. $GET_PASSWD = 'ypcat passwd';
  24.  
  25.   And all the password stuff would work on your yp database instead
  26. of the normal one in /etc/passwd.  This is a poor example, because 
  27. the system automatically detects yellow pages, and does this anyway.
  28. But hopefully, you get the idea.  Anyway, just comment out that
  29. line, or apply this patch that will do it for you.
  30.  
  31.  --dan
  32.  
  33. -----------------------------------------------------------------------
  34. *** cops.cf.old    Sun Jun 23 01:16:47 1991
  35. --- cops.cf    Sun Jun 23 01:22:56 1991
  36. ***************
  37. *** 23,29 ****
  38.   # and 'ypcat passwd' stuff.  Note that this will pass the info to the
  39.   # password caching program -- it expects a file with *exactly* the same
  40.   # fields and such as the normal password file, ok?
  41. ! $GET_PASSWD    = '/bin/cat passwd';
  42.   
  43.   ###############################################################
  44.   # many things call &chk_strings (including {cron,misc,rc,root}.chk)
  45. --- 23,29 ----
  46.   # and 'ypcat passwd' stuff.  Note that this will pass the info to the
  47.   # password caching program -- it expects a file with *exactly* the same
  48.   # fields and such as the normal password file, ok?
  49. ! # $GET_PASSWD    = '/bin/cat passwd';
  50.   
  51.   ###############################################################
  52.   # many things call &chk_strings (including {cron,misc,rc,root}.chk)
  53.