home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 13 / CDA13.ISO / DOC / HOWTO / UUCP_HOW.GZ / UUCP_HOW
Encoding:
Text File  |  1996-03-14  |  19.4 KB  |  523 lines

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