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

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