home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / vrac / how_to.zip / UUCP.HOW < prev    next >
Text File  |  1994-04-29  |  19KB  |  533 lines

  1. Archive-name: linux/howto/uucp
  2. Last-modified: 19 Apr 94
  3.  
  4.   The Linux UUCP HOWTO
  5.   Vince Skahan, <vince@victrola.wa.com>
  6.   v1.6, Last modified 26 March 1994
  7.  
  8.   This  document  describes  the  setup  and  care+feeding of UUCP under
  9.   Linux.  You need to read this if you plan to connect to  remote  sites
  10.   via  UUCP  via a modem, via a direct-connection, or via Internet.  You
  11.   probably do *not* need to read this document if don't talk UUCP.
  12.  
  13.   1.  Introduction
  14.  
  15.   The intent of this document is to answer some  of  the  questions  and
  16.   comments  that  appear  to  meet  the  definition of "frequently asked
  17.   questions" about UUCP software under Linux in general, and the version
  18.   in the Linux SLS and Slackware distributions in particular.
  19.  
  20.   This  document  and  the corresponding Mail and News "HOWTO" documents
  21.   collectively supersede the UUCP-NEWS-MAIL-FAQ that has previously been
  22.   posted to comp.os.linux.announce.
  23.  
  24.   1.1.  New versions of this document
  25.  
  26.   New   versions  of  this  document  will  be  periodically  posted  to
  27.   comp.os.linux.announce, comp.answers,  and  news.answers.   They  will
  28.   also  be  added  to  the  various anonymous ftp sites who archive such
  29.   information including sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  30.  
  31.   1.2.  Feedback
  32.  
  33.   I am interested in any feedback, positive or negative,  regarding  the
  34.   content  of  this  document  via e-mail.  Definitely contact me if you
  35.   find errors or obvious omissions.
  36.  
  37.   I read, but do not necessarily  respond  to,  all  e-mail  I  receive.
  38.   Requests  for  enhancements will be considered and acted upon based on
  39.   that day's combination of available time, merit of  the  request,  and
  40.   daily blood pressure :-)
  41.  
  42.   Flames will quietly go to /dev/null so don't bother.
  43.  
  44.   Feedback concerning the actual format of the document should go to the
  45.   HOWTO coordinator - Matt Welsh (mdw@sunsite.unc.edu).
  46.  
  47.  
  48.   1.3.  Copyright Information
  49.  
  50.   The UUCP-HOWTO is copyrighted (c)1994 Vince Skahan.
  51.  
  52.   A verbatim copy  may  be  reproduced  or  distributed  in  any  medium
  53.   physical or electronic without permission of the author.  Translations
  54.   are similarly permitted without express permission if  it  includes  a
  55.   notice on who translated it.
  56.  
  57.   Short  quotes  may  be  used  without  prior  consent  by  the author.
  58.   Derivative work and partial distributions of the  UUCP-HOWTO  must  be
  59.   accompanied  with  either a verbatim copy of this file or a pointer to
  60.   the verbatim copy.
  61.  
  62.   Commercial redistribution is  allowed  and  encouraged;  however,  the
  63.   author would like to be notified of any such distributions.
  64.  
  65.   In short, we wish to promote dissemination of this information through
  66.   as many channels as possible. However, we do wish to retain  copyright
  67.   the  HOWTO  documents,  and  would like to be notified of any plans to
  68.   redistribute the HOWTOs.
  69.  
  70.   We further want  that  ALL  information  provided  in  the  HOWTOS  is
  71.   disseminated.   If  you have questions, please contact Matt Welsh, the
  72.   Linux HOWTO coordinator, at mdw@sunsite.unc.edu, or +1 607 256 7372.
  73.  
  74.  
  75.   1.4.  Standard Disclaimer
  76.  
  77.   Of course, I disavow any potential liability for the contents of  this
  78.   document.  Use of the concepts, examples, and/or other content of this
  79.   document is entirely at your own risk.
  80.  
  81.  
  82.   1.5.  Other sources of information
  83.  
  84.   1.5.1.  USENET
  85.  
  86.   comp.mail.uucp can answer most of your UUCP questions
  87.  
  88.   1.5.2.  Mailing Lists
  89.  
  90.   There is a Taylor UUCP mailing list.
  91.  
  92.   To join (or get off) the list, send mail to
  93.  
  94.                 taylor-uucp-request@gnu.ai.mit.edu
  95.  
  96.  
  97.  
  98.   This request goes to a person, not to a program, so please  make  sure
  99.   that  you include the address at which you want to receive mail in the
  100.   text of the message.
  101.  
  102.   To send a message to the list, send it to
  103.  
  104.                taylor-uucp@gnu.ai.mit.edu
  105.  
  106.  
  107.  
  108.  
  109.   1.5.3.  Books
  110.  
  111.   HDB and V2 versions of UUCP are documented  in  about  every  vendor's
  112.   documentation as well as in almost all *nix communications books.
  113.  
  114.   Taylor  config  files  are currently only documented in the info files
  115.   provided with the sources (and in the SLS distribution hopefully).  To
  116.   read  them,  you  can grab the nice "infosrc" program from the SLS "s"
  117.   disks and compile it.
  118.  
  119.   The following is a non-inclusive set of books that will help.
  120.  
  121.   o  "Managing UUCP and USENET" from O'Reilly and Associates  is  in  my
  122.      opinion  the  best book out there for figuring out the programs and
  123.      protocols involved in being a USENET site.
  124.  
  125.   o  "Unix  Communications"  from  The  Waite  Group  contains  a   nice
  126.      description of all the pieces (and more) and how they fit together.
  127.  
  128.   o  "Practical Unix Security" from O'Reilly and Associates has  a  nice
  129.      discussion of how to secure UUCP in general.
  130.  
  131.   o  "The  Internet Complete Reference" from Osborne is a fine reference
  132.      book that explains the various services available on  Internet  and
  133.      is  a  great  "one-stop-shopping"  source  for information on news,
  134.      mail, and various other Internet resources.
  135.  
  136.   1.6.  Where *NOT* to look for help
  137.  
  138.   There is nothing "special" about configuring and  running  UUCP  under
  139.   Linux  (any more).  Accordingly, you almost certainly do *NOT* want to
  140.   be posting  generic  UUCP-related  questions  to  the  comp.os.linux.*
  141.   newsgroups.
  142.  
  143.  
  144.   Unless  your posting is truly Linux-specific (ie, "please tell me what
  145.   config file support is built into the binaries for Taylor  uucp  v1.04
  146.   in  SLS v1.02"), you should be asking your questions in comp.mail.uucp
  147.   or on the Taylor UUCP mailing list as indicated above.
  148.  
  149.   Let me repeat that.
  150.  
  151.   There is virtually no reason to  post  anything  uucp-related  in  the
  152.   comp.os.linux  hierarchy  any  more.  There are existing newsgroups in
  153.   the comp.mail.* hierarchy to handle *ALL* your questions.
  154.  
  155.   IF YOU POST TO COMP.OS.LINUX.* FOR NON-LINUX-SPECIFIC  QUESTIONS,  YOU
  156.   ARE LOOKING IN THE WRONG PLACE FOR HELP.  THE UUCP EXPERTS HANG OUT IN
  157.   THE PLACES INDICATED ABOVE AND GENERALLY DO NOT RUN LINUX.
  158.  
  159.   POSTING TO THE LINUX HIERARCHY FOR NON-LINUX-SPECIFIC QUESTIONS WASTES
  160.   YOUR  TIME  AND  EVERYONE  ELSE'S  AND  IT  FREQUENTLY DELAYS YOU FROM
  161.   GETTING THE ANSWER TO YOUR QUESTION.
  162.  
  163.  
  164.   2.  Hardware Requirements
  165.  
  166.  
  167.   There are no specific hardware  requirements  for  UUCP  under  Linux.
  168.   Basically any Hayes-compatible modem works painlessly with UUCP.
  169.  
  170.   In  most  cases,  you'll  want  the  fastest modem you can afford.  In
  171.   general, you want to have a 16550 UART on your serial board  or  built
  172.   into your modem to handle speeds of above 9600 baud.
  173.  
  174.   If  you  don't  know what that last sentence means, please consult the
  175.   comp.dcom.modems  group  or  the  various  fine   modem   and   serial
  176.   communications FAQs and periodic postings on USENET.
  177.  
  178.  
  179.   3.  Getting UUCP
  180.  
  181.   Taylor  UUCP (current version 1.04) is available on prep.ai.mit.edu in
  182.   source form and in various Linux distributions in binary form.
  183.  
  184.   The newspak-2.1.tar.z distribution contains config  files  and  readme
  185.   files  related  to  building uucp, news, and mail software under Linux
  186.   from the various freely-available sources.  It can usually be found on
  187.   sunsite.unc.edu in the directory /pub/Linux/system/Mail.
  188.  
  189.  
  190.   4.  Installing the Software
  191.  
  192.   (Much  of  this  section is taken verbatim from the README file in the
  193.   Taylor UUCP v1.04 sources - it's provided  here  so  I  can  help  you
  194.   "rtfm" instead of just telling you to do so)
  195.  
  196.   Detailed compilation instructions are in uucp.texi in the sources.
  197.  
  198.   You can grab "known good" conf.h and policy.h files for Linux from the
  199.   newspak distribution referred to in the "other sources of information"
  200.   section  above.   In  that  case,  you can probably go right to typing
  201.   "make".
  202.   4.1.  Extracting the compressed sources
  203.  
  204.   To extract a gzip'd tar archive, I do the following:
  205.  
  206.                   gunzip -c filename.tar.z | tar xvf -
  207.  
  208.  
  209.   A "modern" tar can just do a:
  210.  
  211.                  tar -zxvf filename.tgz
  212.  
  213.  
  214.  
  215.   4.2.  Edit Makefile.in to set installation directories.
  216.  
  217.   Here, I set "prefix" to "/usr" rather than the default of "/usr/local"
  218.  
  219.  
  220.   4.3.  Run "configure"
  221.  
  222.   Type "sh configure".
  223.  
  224.   The  configure  script  will  compile a number of test programs to see
  225.   what is available on your system and will calculate many things.
  226.  
  227.   The configure script will create conf.h from  conf.h.in  and  Makefile
  228.   from Makefile.in.  It will also create config.status, which is a shell
  229.   script which actually creates the files.
  230.  
  231.  
  232.   4.4.  Configure the future setup of the software
  233.  
  234.  
  235.   4.4.1.  Examine conf.h and Makefile to make sure they're right.
  236.  
  237.   I took the defaults
  238.  
  239.   4.4.2.  Edit policy.h for your local system.
  240.  
  241.  
  242.   o  - set the type of lockfiles you want (HAVE_HDB_LOCKFILES)
  243.  
  244.   o  -   set   the   type   of   config   files   you   want   built  in
  245.      (HAVE_TAYLOR_CONFIG, HAVE_V2_CONFIG, HAVE_HDB_CONFIG)
  246.  
  247.   o  - set the type of spool directory structure you want (SPOOLDIR_HDB)
  248.  
  249.   o  - set the type of logging you want (HAVE_HDB_LOGGING)
  250.  
  251.   o  -  set the default search path for commands (I added /usr/local/bin
  252.      to mine)
  253.  
  254.   4.5.  Compile and install the software
  255.  
  256.  
  257.   o  Type "make".
  258.  
  259.   o  Use "uuchk | more" to  check  configuration  files.   You  can  use
  260.      "uuconv" to convert between configuration file formats.
  261.  
  262.   o  Type "make install" to install.
  263.  
  264.   4.6.  Set up the config files
  265.  
  266.   I'd recommend you start by taking the attached known-good config files
  267.   for HDB mode and installing them.
  268.   o  Make sure that the Permissions file indicates exactly  where  rmail
  269.      and  rnews  are  to be found if you put them anywhere other than in
  270.      the path you specified in policy.h
  271.  
  272.   o  Make sure that your Devices files matches the  actual  location  of
  273.      your modem (cua1=COM2 in the examples)
  274.  
  275.   o  Edit  the  Systems  file  to  set up the system(s) you talk to with
  276.      their speed, phone number, username, and password.
  277.  
  278.      *PROTECT THIS FILE AGAINST WORLD READ*
  279.  
  280.   o  Set up the Permissions file and add a set of lines  for  each  site
  281.      you  talk  to.  For security reasons, it's recommended to make sure
  282.      they each have a separate account (if you allow  dialin)  and  home
  283.      directory so you can track things.
  284.  
  285.  
  286.   4.7.  Give it a try
  287.  
  288.  
  289.   /usr/lib/uucp/uucico -r 1 -x 9 -s remote_system_name
  290.  
  291.   The  -x  9  will  have  maximum  debugging  information written to the
  292.   /usr/spool/uucp/.Admin/audit.local file for help in initial setup.
  293.  
  294.   I normally run -x 4 here since that level logs details  that  help  me
  295.   with  login  problems.  Obviously, this contains cleartext information
  296.   from your Systems file (account/password) so protect it against world-
  297.   read.
  298.  
  299.  
  300.   o  from Pierre.Beyssac@emeraude.syseca.fr
  301.  
  302.      Taylor  has  more  logging  levels.   Use -x all to get the highest
  303.      level possible.
  304.  
  305.      Also,  do  a  "tail  -f  /usr/spool/uucp/.Admin/audit.local"  while
  306.      debugging to watch things happen on the fly.
  307.  
  308.   4.8.  It doesn't work - now what ?
  309.  
  310.   In  general,  you  can  refer  to the documentation mentioned above if
  311.   things don't work.  You can also refer to your more  experienced  UUCP
  312.   neighbors for help.  Usually, it's something like a typo anyway.
  313.  
  314.  
  315.   5.  Frequently Asked Questions about Linux UUCP
  316.  
  317.  
  318.  
  319.   5.1.   Why is my binary of uucp configured in HDB rather than "Taylor"
  320.   mode?
  321.  
  322.   (religious  mode  on  - I know some people are just as religious about
  323.   "ease of use" as I am about "being standard".  That's  why  they  make
  324.   source code you can build your own from :-) )
  325.  
  326.   Because  IMHO  it's  the de-facto standard UUCP implementation at this
  327.   time.  There are thousands of sites with experienced admins and  there
  328.   are many places you can get incredibly good information concerning the
  329.   HDB setup.
  330.  
  331.   The uucp-1.04 that's in SLS 1.02 and later  has  all  three  modes  of
  332.   config  files  built  in.  While I can't test it, I did "rtfm" and Ian
  333.   Taylor tells me that it should work.
  334.   The search order for config files is Taylor then V2 (L.sys)  then HDB.
  335.   Use  the  uuconv utility in /usr/lib/uucp to convert config files from
  336.   one mode to another.
  337.  
  338.   If  you  can't  wait,  grab  the  sources   for   uucp   and   specify
  339.   HAVE_BNU_CONFIG,   HAVE_V2_CONFIG   *and*  HAVE_TAYLOR_CONFIG  in  the
  340.   policy.h file and type "make".
  341.  
  342.   The following workaround is ugly, but it does work, if you want to run
  343.   Taylor configs from binaries that don't have it built in.
  344.  
  345.   o  From mbravo@tctube.spb.su (Michael E. Bravo)
  346.  
  347.      -  add   "-I  /usr/local/lib/uucp/config"  to _every_ invocation of
  348.      whatever program in uucp package
  349.  
  350.   5.2.  Why do I  get  "timeout"  on  connections  when  I  upgraded  to
  351.   uucp-1.04 ?
  352.  
  353.  
  354.   o  from Ed Carp - erc@apple.com
  355.  
  356.      If you use a "Direct" device in the Devices file, there's now a  10
  357.      second  timeout  compiled in.  Make the name of the Device anything
  358.      other than "Direct".  If you tweak the example /usr/lib/uucp  files
  359.      provided with SLS, you won't have problems with this one.
  360.  
  361.   o  from Greg Naber - greg@squally.halcyon.com
  362.  
  363.      If  you  get  chat  script  timeouts,  you can tweak the sources by
  364.      editing at line 323 in uuconf/syssub.c  and  changing  the  default
  365.      timeouts from 10 seconds to something larger.
  366.  
  367.   o  from Ed Rodda - ed@orca.wimsey.bc.ca
  368.  
  369.      If  you  get  chat  script  timeouts, typically connecting to other
  370.      Taylor sites, a pause after login can fix this.
  371.  
  372.      feed Any ACU,ag 38400 5551212 ogin: \c\d "" yourname word: passwd
  373.  
  374.  
  375.  
  376.   o  from Dr. Eberhard W. Lisse - el@lisse.NA
  377.  
  378.      Some kernels  experience  modems  hanging  up  after  a  couple  of
  379.      seconds.  The following patch sent by Ian Taylor might help.
  380.  
  381.      *** conn.c.orig Mon Feb 22 20:25:24 1993
  382.      --- conn.c      Mon Feb 22 20:33:10 1993
  383.      ***************
  384.      *** 204,209 ****
  385.      --- 204,212 ----
  386.  
  387.           /* Make sure any signal reporting has been done before we set
  388.             fLog_sighup back to TRUE.  */
  389.      +   /* SMR: it seems to me if we don't care about SIGHUPS, we should clear
  390.      +      the flag before we return  */
  391.      +   afSignal[INDEXSIG_SIGHUP] = FALSE;
  392.          ulog (LOG_ERROR, (const char *) NULL);
  393.          fLog_sighup = TRUE;
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.   5.3.  Why doesn't HDB anonymous uucp seem to work ?
  401.  
  402.   The SLS anonymous uucp only works in Taylor mode because it's compiled
  403.   with HAVE_TAYLOR_CONFIG.  If you want to do anon  uucp  in  HDB  mode,
  404.   you'll  have  to  recompile  the  sources  with just HDB defined.  Ian
  405.   Taylor is considering which way to deal with this "feature".
  406.  
  407.   Also, Taylor in HDB mode seems to be  sensitive  to  white  space  and
  408.   blank  lines.   To be safe, make sure that there are no blank lines or
  409.   trailing spaces in the Permissions file.
  410.  
  411.   Lastly, make sure that  you  have  a  file  called  remote.unknown  in
  412.   /usr/lib/uucp  and that it's *NOT* executable.  See the O'Reilly+Assoc
  413.   book "Managing UUCP and USENET" for details regarding this file.
  414.  
  415.  
  416.   5.4.  What does "no matching ports found" mean ?
  417.  
  418.   In  all  probability,   you   are   attempting   to   use   a   device
  419.   (/usr/lib/uucp/Devices)  that  doesn't  exist,  or  the  device you've
  420.   specified in the /usr/lib/uucp/Systems file doesn't match up with  any
  421.   valid devices in the Devices file.
  422.  
  423.   Following  this are *sanitized* versions of my working Taylor 1.04 HDB
  424.   config files that you can plug in and use.
  425.  
  426.   note the "ACU" in the Systems ?  That tells which  "port"  to  use  in
  427.   Devices
  428.  
  429.   see  the  "scout" word in Systems ?  That tells which dialer to use in
  430.   Dialers.
  431.  
  432.   If you had a ACU port, but none that matched the specified  dialer  on
  433.   the same line in Systems, you'll get that message.
  434.  
  435.  
  436.   5.5.  What are known good config files for HDB mode ?
  437.  
  438.   The  following  are  "known-good"  config  files for Taylor 1.04 under
  439.   Linux in HoneyDanBer mode.  They work on kernels of 0.99-8  or  later.
  440.   All files should be in /usr/lib/uucp unless you've tweaked the sources
  441.   to put the uucp library elsewhere.
  442.  
  443.   If you *HAVE* put things in non-standard places, be aware that  things
  444.   like  sendmail  might  get  very confused. You need to ensure that all
  445.   communications-related programs  agree  on  your  idea  of  "standard"
  446.   paths.
  447.  
  448.   If  you're  running  a  kernel  of 0.99-7 or earlier, change "cua1" to
  449.   "ttyS1".
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.   #------------- Devices -------------
  467.   # make sure the device (cua1 here) matches your system
  468.   # cua1 = COM2
  469.   #
  470.   # here "scout" is the Digicom Scout Plus 19.2 modem I use
  471.   # tbfast etc. is for a Telebit Trailblazer Plus modem's various speeds
  472.   #
  473.   ACU cua1 - 19200 scout
  474.   ACU cua1 - 9600 tbfast
  475.   ACU cua1 - 1200 tbslow
  476.   ACU cua1 - 2400 tbmed
  477.  
  478.   #------------- dialers --------------
  479.   # note the setting of the Trailblazer registers "on the fly"
  480.   # "scout" is a Digicom Scout Plus (Hayes-like) modem I use here
  481.   #
  482.   scout   =W-,    "" ATM0DT\T CONNECT
  483.   tbfast  =W-,    "" A\pA\pA\pT OK ATS50=255DT\T CONNECT\sFAST
  484.   tbslow  =W-,    "" A\pA\pA\pT OK ATS50=2DT\T CONNECT\s1200
  485.   tbmed   =W-,    "" A\pA\pA\pT OK ATS50=3DT\T CONNECT\s2400
  486.  
  487.   #-------------- Systems -------------
  488.   # this is a very generic entry that will work for most systems
  489.   #
  490.   # the Any;1 means that you can call once per minute with using -f (force)
  491.   # the ACU,g means force "g" protocol rather than Taylor's default "i"
  492.   #
  493.   fredsys Any;1 ACU,g 19200 scout5555555 "" \r ogin:--ogin: uanon word: uanon
  494.  
  495.   #-------------------------------- Permissions -------------------------
  496.  
  497.   # Taylor UUCP in HDB mode appears to be sensitive to blank lines.
  498.   # Make sure all Permissions lines are real or commented out.
  499.   #
  500.   # this is a anonymous uucp entry
  501.   #
  502.   LOGNAME=nuucp MACHINE=OTHER \
  503.   READ=/usr/spool/uucp/nuucp \
  504.   WRITE=/usr/spool/uucp/nuucp \
  505.   SENDFILES=yes REQUEST=yes \
  506.   COMMANDS=/bin/rmail
  507.   #
  508.   # this is a normal setup for a remote system that talks to us
  509.   # note the absolute path to rnews since this site puts things
  510.   # in locations that aren't "standard"
  511.   #
  512.   LOGNAME=fredsys MACHINE=fredsys \
  513.   READ=/usr/spool/uucp/fredsys:/usr/spool/uucp/uucppublic:/files \
  514.   WRITE=/usr/spool/uucp/fredsys:/usr/spool/uucppublic \
  515.   SENDFILES=yes REQUEST=yes \
  516.   COMMANDS=/bin/rmail:/usr/local/lib/news/bin/rnews
  517.   #----------------------------------------------------------------------
  518.  
  519.  
  520.  
  521.  
  522.   6.  Acknowledgements
  523.  
  524.  
  525.   The following people have helped in the assembly  of  the  information
  526.   (and experience) that helped make this document possible:
  527.  
  528.   Ed  Carp,  Steve  Robbins,  Ian Taylor, Greg Naber, Matt Welsh, Pierre
  529.   Beyssac
  530.  
  531.  
  532.   If I forgot anybody, my apologies.
  533.