home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / CO / CO003C.ZIP / GT1402-5.ARC / GTHOST.DOC < prev    next >
Text File  |  1988-04-27  |  99KB  |  2,311 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.                                 GT POWER - 14.00
  12.                  Copyright (c) 1985, 1988: by P & M Software Co.
  13.                             All rights are reserved.
  14.  
  15.  
  16.  
  17.                              Host Mode Documentation
  18.  
  19.  
  20.                                  April 25, 1988
  21.  
  22.  
  23.  
  24.  
  25.                              P & M Software Company
  26.                              9350 Country Creek #30
  27.                              Houston, Texas   77036
  28.                              U.S.A.
  29.  
  30.                              Voice Phone: (713) 778-9471
  31.                              Modem Phone: (713) 772-2090
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                        1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.                                 Table of Contents
  70.                     -----------------------------------------
  71.      Brief Summary . . . . . . . . . . . . . . . . . . . . . . . . . . .   4
  72.      Installation of Host Mode . . . . . . . . . . . . . . . . . . . . .   4
  73.           The "Modem Init String"  . . . . . . . . . . . . . . . . . . .   4
  74.           The "Host Mode: Modem Init String" . . . . . . . . . . . . . .   4
  75.           The "Modem Answer String"  . . . . . . . . . . . . . . . . . .   5
  76.           The "Result Codes" . . . . . . . . . . . . . . . . . . . . . .   5
  77.           Logging  . . . . . . . . . . . . . . . . . . . . . . . . . . .   5
  78.           Hang-up during host mode . . . . . . . . . . . . . . . . . . .   5
  79.           The "Message base PATH"  . . . . . . . . . . . . . . . . . . .   6
  80.           The "Default file section" . . . . . . . . . . . . . . . . . .   6
  81.  
  82.      Security Considerations . . . . . . . . . . . . . . . . . . . . . .   7
  83.           DSZ.EXE  . . . . . . . . . . . . . . . . . . . . . . . . . . .   8
  84.           PCKERMIT.EXE . . . . . . . . . . . . . . . . . . . . . . . . .   8
  85.  
  86.      Host Mode Text Files  . . . . . . . . . . . . . . . . . . . . . . .  11
  87.           Forcing the "More?" prompt . . . . . . . . . . . . . . . . . .  11
  88.           Disable the "More?" prompt . . . . . . . . . . . . . . . . . .  11
  89.           Disable ^K/^C break  . . . . . . . . . . . . . . . . . . . . .  11
  90.           ANSI graphics  . . . . . . . . . . . . . . . . . . . . . . . .  11
  91.           GTSYSID.BBS  . . . . . . . . . . . . . . . . . . . . . . . . .  11
  92.           GTWELCOM.BBS . . . . . . . . . . . . . . . . . . . . . . . . .  11
  93.           GTPASSWD.BBS . . . . . . . . . . . . . . . . . . . . . . . . .  11
  94.           GTBULLET.BBS . . . . . . . . . . . . . . . . . . . . . . . . .  14
  95.           BULLETx.BBS  . . . . . . . . . . . . . . . . . . . . . . . . .  14
  96.           GTMENU.BBS . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  97.           GTHELP.BBS . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  98.           GTBYE.BBS  . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  99.           GTBYEx.BBS . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  100.           GTUSER.BBS . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  101.           GTDIR.BBS  . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  102.           GTDDIR.BBS . . . . . . . . . . . . . . . . . . . . . . . . . .  16
  103.           GTBMENU.BBS  . . . . . . . . . . . . . . . . . . . . . . . . .  17
  104.           GTMDIR.BBS . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  105.           GTDOORS.BBS  . . . . . . . . . . . . . . . . . . . . . . . . .  18
  106.           GTDOORn.BAT  . . . . . . . . . . . . . . . . . . . . . . . . .  18
  107.           ANSWERn.BBS  . . . . . . . . . . . . . . . . . . . . . . . . .  19
  108.           QUESTn.BBS . . . . . . . . . . . . . . . . . . . . . . . . . .  19
  109.           PQUESTn.BBS  . . . . . . . . . . . . . . . . . . . . . . . . .  20
  110.           GTQMENU.BBS  . . . . . . . . . . . . . . . . . . . . . . . . .  20
  111.           PROTOCOL.BBS . . . . . . . . . . . . . . . . . . . . . . . . .  20
  112.           WELCOME.BBS  . . . . . . . . . . . . . . . . . . . . . . . . .  21
  113.           MBULLETx.BBS . . . . . . . . . . . . . . . . . . . . . . . . .  21
  114.           SYSOP.BBS  . . . . . . . . . . . . . . . . . . . . . . . . . .  21
  115.           SCHEDULE.BBS . . . . . . . . . . . . . . . . . . . . . . . . .  22
  116.           FILES.BBS  . . . . . . . . . . . . . . . . . . . . . . . . . .  23
  117.  
  118.      Host Mode Control Files and Directories . . . . . . . . . . . . . .  24
  119.  
  120.      Running Host Mode . . . . . . . . . . . . . . . . . . . . . . . . .  25
  121.           SYSOP COMMANDS . . . . . . . . . . . . . . . . . . . . . . . .  25
  122.           Command Line Usage . . . . . . . . . . . . . . . . . . . . . .  25
  123.  
  124.      Host Mode LOG . . . . . . . . . . . . . . . . . . . . . . . . . . .  27
  125.  
  126.      The Shell to DOS  . . . . . . . . . . . . . . . . . . . . . . . . .  27
  127.           COMMAND.COM  . . . . . . . . . . . . . . . . . . . . . . . . .  27
  128.  
  129.                                        2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.           DOS 2.xx . . . . . . . . . . . . . . . . . . . . . . . . . . .  27
  137.  
  138.      Using the Shell to DOS  . . . . . . . . . . . . . . . . . . . . . .  28
  139.  
  140.      Generic Tool Interface  . . . . . . . . . . . . . . . . . . . . . .  29
  141.      Remote Sysop Interface  . . . . . . . . . . . . . . . . . . . . . .  29
  142.      Usage of Color  . . . . . . . . . . . . . . . . . . . . . . . . . .  30
  143.      Logon DOOR  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  30
  144.      Logoff Batch File . . . . . . . . . . . . . . . . . . . . . . . . .  31
  145.  
  146.      APPENDIX  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  32
  147.           extended ASCII codes . . . . . . . . . . . . . . . . . . . . .  32
  148.           sample ANSI sequences  . . . . . . . . . . . . . . . . . . . .  32
  149.  
  150. (tm) DESQview is the trademark of QuarterDeck Office Systems.
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                        3
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.      Brief Summary
  205.      -------------
  206.      The host  mode provided  within GT POWER allows you to run an unattended
  207.      session with your system.  That is, if you expect to receive  calls from
  208.      other computer  systems (say  from clients or a set of authorized remote
  209.      users) then you can tell GT  POWER that  it should  automatically answer
  210.      the telephone  for you, verify the caller's credentials, and if found to
  211.      be valid, to provide  that user  with a  menu of  functions that  can be
  212.      performed.  All of that, of course, without further intervention on your
  213.      part.
  214.  
  215.      Security is of  paramount  importance  when  running  in  host  mode for
  216.      obvious   reasons.      Please   read  the  section  entitled  'Security
  217.      Considerations' before attempting to operate this system.
  218.  
  219.  
  220.  
  221.      Installation of Host Mode
  222.      -------------------------
  223.      The most important thing about host mode is  proper installation  of the
  224.      modem control  strings and  result codes.   These strings and codes must
  225.      not just control the modem, they  MUST WORK  TOGETHER.   For example, if
  226.      the modem  init strings  specify "verbose" result codes, then the result
  227.      code table better have the "verbose" codes in it, not the "terse" codes.
  228.      There  are  11  specific  areas  that  *must* be installed; all of these
  229.      options and strings are accessible via the ALT-I command.  Let's discuss
  230.      each of these items in turn:
  231.  
  232.      1.   The "Modem Init String".  The default value is:
  233.  
  234.                            AT V1 Q0 E0 X1 S0=0 S2=43|
  235.  
  236.           Assuming that  one wants to use the default string, there is really
  237.           only one thing that  one SHOULD  DO to  this string:  change the Xn
  238.           command.   The most  powerful Xn command available on your modem is
  239.           the one to choose.   With  a  USRobotics  Courier  2400  modem, use
  240.           either X5  or X6.   With a normal Hayes-compatible 1200 baud modem,
  241.           use X1.  X4  would be  normal for  most Hayes-compatible  2400 baud
  242.           modems.  For other modems consult the modem manual.
  243.  
  244.           NOTE:
  245.                Many  so  called  "Hayes-compatibles"  are  compatible in name
  246.                only.   We get  many calls  for support  from individuals with
  247.                non-Hayes  modems.    Please  read your modem manual carefully
  248.                because it is very hard to support all the different modems.
  249.  
  250.      2.   The "Host Mode: Modem  Init String".   This  string is  found under
  251.           item #30 of the configuration screen.  The default value is:
  252.  
  253.                            AT V1 Q0 E0 M0 X1 S0=1 S2=255|
  254.  
  255.           There are  several things  one could do to this string.  First, one
  256.           must modify the X1 command to  match the  value added  to the Modem
  257.           Init  String  above.    Secondly,  if one desires the speaker to be
  258.           heard during host mode, remove the  M0 from  the string.   Thirdly,
  259.           the  S0=1  may  be  changed  to  S0=0, THIS IS THE ONLY OTHER VALID
  260.  
  261.                                            4
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.           VALUE!  If S0=0 is used, the modem  will not  answer automatically,
  271.           GT will  count the  rings and command the modem to answer after the
  272.           2nd ring (or if the /Rn command line switch is used, after  the Nth
  273.           ring).   This is why S0=1 and S0=0 are the only permissible values!
  274.           Refer to the main GT1400.DOC file for a complete discussion  of the
  275.           available command line switches.
  276.  
  277.      3.   The "Modem  Answer String".   This  string is located with the Host
  278.           Modem Init String under item #30 of the configuration screen.   The
  279.           default value is:
  280.  
  281.                            ATA|
  282.  
  283.           GT  will  issue  this  string  to the modem whenever the ring count
  284.           reaches 2 (or the number indicated by the /Rn switch).  This string
  285.           should not  be changed,  unless GT  should not be allowed to answer
  286.           the modem.  For example, one could erase this string  and set S0=5,
  287.           so that  the modem would answer on the 5th ring, but I don't advise
  288.           anyone do this.
  289.  
  290.      4.   The "Result Codes".  Because the  modem init  strings above contain
  291.           V1, "verbose" result codes should be programmed.  They can be found
  292.           under item #29 of the configuration screen.  There are  16 possible
  293.           results.   If the modem does not support all of these, simply leave
  294.           the extra strings in their default state.   The program  comes with
  295.           the default  result codes set for use with a USRobotics Courier HST
  296.           modem.  Please consult the manual for the  modem in  use and modify
  297.           this table to match.  Remember, use the "verbose" (word codes), not
  298.           the "terse" codes.  It IS  POSSIBLE to  use the  "terse" codes, but
  299.           they are not as compatible with such services as PC Pursuit.  It is
  300.           especially important that the result codes for the  CONNECT results
  301.           are  correct.    GT  uses  these  to determine the baud rate of the
  302.           incoming call.  If they are wrong, then GT will not be able to talk
  303.           to the incoming caller, because the modem and GT will not be at the
  304.           same baud rate; they will be out-of-sync.
  305.  
  306.      5.   It is  highly recommended  that logging  be TRUE  during host mode.
  307.           Otherwise,  all  records  of  the  host  mode  activities  will  be
  308.           discarded.
  309.  
  310.      6.   How to allow GT  to hang-up  during host  mode.   Since the "escape
  311.           code" must  be disabled during host mode, otherwise some caller may
  312.           crash your system, the normal hang-up string, "~+++~ATH",  will not
  313.           work!   Therefore, GT  cannot hang-up the modem, unless you set the
  314.           modem to normal DTR operation.  During host mode, GT  will drop the
  315.           DTR signal  whenever he  wants the  modem to  hang-up.  Most modems
  316.           come from the factory set so that they ignore the DTR signal  - you
  317.           must reset  a switch  or, in  the case of the Hayes 2400 modem, you
  318.           must make an entry in the  Modem init  string to  do this.   In any
  319.           case, if  the modem  ignores DTR,  it will  not hang up during host
  320.           mode operations.  Some modems which  must  be  setup  via  the init
  321.           strings  to  handle  DTR  properly  use  either  &D2 or &D3, please
  322.           consult the manual for the modem  in use  to determine  the correct
  323.           setting.
  324.  
  325.      7.   How  does  GT  determine  when  a  connection is lost?  The GT host
  326.  
  327.                                            5
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.           monitors the carrier detect signal from the modem, when this signal
  337.           goes low,  then GT assumes that the connection has been lost.  Most
  338.           modems come from the  manufacturer with  the carrier  detect signal
  339.           forced high.   "This  is like  having a  telephone with no ringer."
  340.           Quote by Tom Jennings.  Obviously,  this  must  be  changed.   Some
  341.           modems have  a switch  that must  be reset to enable a true carrier
  342.           detect, others require setup via the  init  string.    Many  of the
  343.           modems that  require init  string setup use &C1, please consult the
  344.           manual for the modem in use to determine the correct setting.
  345.  
  346.      8.   Another option  available under  the Alt-I,  #30, the miscellaneous
  347.           options section,  is the "Message base PATH".  This option is to be
  348.           used to indicate to GT where  the main  or default  message base is
  349.           located.   This is the message base that the user will be initially
  350.           given access to upon calling the  system.   This should  be an open
  351.           message base  since all  callers to  the system that pass the logon
  352.           procedure will have access to this area.
  353.  
  354.      9.   Another option  available under  the Alt-I,  #30, the miscellaneous
  355.           options  section,  it  the  "Default  File  Section".   This option
  356.           indicates to GT where the main or default file section  is located.
  357.           This is  the file section that callers will see initially when they
  358.           access your system.    This  should  be  an  area  with  the lowest
  359.           security access level, as everyone will be able to use it.
  360.  
  361.      10.  To designate  the directory where the host mode receives files, you
  362.           should  specify  the  DOWNLOAD  directory  path.    This  option is
  363.           specified under Alt-I, #30, the miscellaneous options section.  The
  364.           user may be confused by the terminology here, so let me stress that
  365.           the DOWNLOAD  directory is where GT POWER *receives* files, whether
  366.           in host or terminal modes.  Further, the UPLOAD directory path only
  367.           pertains  to  Terminal  Mode,  as  the  host  mode  file  areas are
  368.           otherwise controlled via entries  in the  GTDIR.BBS file, described
  369.           below.
  370.  
  371.      11.  To specify  the directory where the host mode will save messages to
  372.           the sysop.  These messages are  entered with  the 'M'  command from
  373.           the  main  menu.    This  option is specified under Alt-I, #30, the
  374.           miscellaneous options section.
  375.  
  376.  
  377.      PLEASE NOTE:
  378.           The pathnames mentioned above are all found under the miscellaneous
  379.           options  screen  #30  of  the  Alt-I  menu.  Once the miscellaneous
  380.           options screen has been selected,  then  #13  on  the miscellaneous
  381.           menu will bring up a window where all the pathnames may be altered.
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.                                            6
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.      Security Considerations
  403.      -----------------------
  404.      Many of GT POWER's design considerations were directed towards providing
  405.      absolute system integrity while in host mode.  This section  is designed
  406.      to highlight  some of  those considerations with the intention of making
  407.      the System operator of a host  mode fully  aware of  both his protection
  408.      and his responsibilities in that regard.
  409.  
  410.      The  fundamental  truth  about  security  is that essentially it is YOUR
  411.      responsibility.  GT POWER's first line of defense in your  behalf is its
  412.      password  function.    Without  a  preassigned password, a remote caller
  413.      cannot gain  access to  the functions  provided by  GT POWER!   Thus, it
  414.      stands  to  reason  that  your  first  responsibility is to assign those
  415.      passwords and  TO  GUARD  THEM.    Because  there  are  several  sets of
  416.      facilities that  you will  wish to control and to allow various users to
  417.      be provided selectively, GT  provides several  'levels' of authorization
  418.      that may  be assigned  to each password.  In this way, all users who log
  419.      on with the same password will have identical  (and only  those that are
  420.      assigned) access  to GT  facilities.   For example, GT POWER provides to
  421.      users who have a sufficiently high 'level' of authorization, the ability
  422.      to shell into DOS and, thus, have the ability to execute ANY DOS COMMAND
  423.      from  their  remote  location!    Obviously,  you  would   not  casually
  424.      distribute that password amongst your user community.  Most users should
  425.      NEVER be allowed to Shell to your DOS!  (While in DOS a user  could, for
  426.      example, format  your hard  disk -  that would, of course, result in the
  427.      end of subsequent functionality of the entire system).   To  these users
  428.      you  would  assign  a  lower  'level'  of authority.  To do so you would
  429.      simply change their access level to the new  level with  the Sysop Tools
  430.      program.
  431.  
  432.      One of the nicest features of the host mode provided by GT POWER are its
  433.      message data bases.  With this feature the users of the system may leave
  434.      'mail' for  other users  and receive mail for themselves.  Indeed, there
  435.      are two kinds of mail: Public and Private.  Public  mail may  be read by
  436.      any user  of the  system.   Private mail, on the other hand, may be read
  437.      only by the person sending it or  by  the  recipient.    Here,  then, is
  438.      another area  of security that you need to be aware of and control.  For
  439.      example, say that you allow your system to be called by clients  of your
  440.      firm  and  that  they  are  encouraged  to leave messages to you in your
  441.      absence.  It is possible that several of your clients are competitors of
  442.      each other.   Thus,  it would be improper to allow them to read messages
  443.      sent by others.  This is the reason for Private mail.  At this  point, I
  444.      would like  to point  out that  there is no such thing as 'Private' from
  445.      the Sysop!  That is, the System operator  may read  any message, whether
  446.      addressed to  him or  not and  whether they  are marked  Private or not.
  447.      Finally, lest  the earlier  remarks did  not sink  in, any  user who has
  448.      access  to  the  DOS  via  the  Shell  command  (because of his assigned
  449.      extremely high 'level' of  authorization) can  easily read  any messages
  450.      while he is in the DOS Shell!
  451.  
  452.      As far  as sending PRIVATE messages to the System operator is concerned,
  453.      any user may do that!  There is  an 'M'  command on  the Main  Menu that
  454.      results in  messages that  only the  Sysop may view.  These messages are
  455.      automatically addressed to the Sysop and  marked as  private.   They are
  456.      placed in  the message  base specified  for sysop  messages, they may be
  457.      read only by someone with the Sysop authorization  level.   This message
  458.  
  459.                                         7
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.      base needs  to be  accessed at  least once by the sysop during setup, to
  469.      insure  that  a  message  is  entered  to  create   all  control  files.
  470.      Otherwise, the  system will  not be  able to process 'M' messages to the
  471.      sysop.
  472.  
  473.      The hierarchy of access 'levels' based on password enables the  Sysop to
  474.      control which  directories on  the disk  those users  have access to for
  475.      purposes of downloading files.  However, each caller to the  system will
  476.      be  granted  access  to  the  "Default  file section", which is a config
  477.      option.  So please  be sure  that this  file section  contains the least
  478.      sensitive material on your system.
  479.  
  480.      For ease  of use, it is recommended that the user construct a batch file
  481.      to invoke GT POWER,  especially host  mode users.   It  should look like
  482.      this:
  483.  
  484.                C:                       To specify a default drive of C
  485.                set GTPATH=C:\GT         Remember to set GTPATH!
  486.                GT1400 !xxxx host.scr    To invoke GT POWER
  487.  
  488.      If the  above batch  file were called GT.BAT and placed in your system's
  489.      PATH then  you could  safely invoke  GT by  simply typing:  GT.    It is
  490.      important to  note, that one of the most frequent errors reported to the
  491.      GT support staff is the incorrect setting of GTPATH.
  492.  
  493.      As you  will see  when you  read the  next section  (about the GTDIR.BBS
  494.      file), you  can allow  your users to have access to all directories that
  495.      have a matching authorization level OR LOWER.  Further, you  can specify
  496.      that particular directories are only available to specific authorization
  497.      levels.
  498.  
  499.      Where is  all this  authorization level  information kept  within the GT
  500.      POWER  system?    In  a  file  called  GTPASSWD.BBS.    That file, it is
  501.      unnecessary to say, is the key to the security of  your system.   One of
  502.      the subtle  security features of GT POWER is that it will not allow that
  503.      file, even if it  is contained  in a  directory that  the user  has been
  504.      authorized to Download from, to be transmitted over the telephone!
  505.  
  506.      NOTE:
  507.           That the  external protocols  can transfer prohibited files and for
  508.           this reason, extreme care should be taken when using either DSZ.EXE
  509.           or PCKERMIT.EXE.
  510.  
  511.      Similarly,  because  the  Log  file  that is optionally maintained by GT
  512.      contains the user names and passwords of those who have  logged onto the
  513.      system, it may not be transmitted over the telephone either.
  514.  
  515.      When  running  in  host  mode  the  screen  on the host system shows all
  516.      keystrokes entered by the  remote user  (except while  he is  in the DOS
  517.      Shell or  using a DOOR, should that be allowed).  In other words, if the
  518.      remote user, for example, entered a Private message to another  user, or
  519.      to the Sysop, the text is showing on the host screen as it is typed.  If
  520.      the user were to log off immediately after entering the  message then it
  521.      would be  possible that the text of the message remained on the  screen.
  522.      GT POWER erases the screen after the caller hangs up  to prevent  such a
  523.      lapse in security.
  524.  
  525.                                         8
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.      If you  are running  a host  mode system  in an environment where others
  536.      might be able to observe the screen then it is recommended that you turn
  537.      your monitor off while you are not in attendance.
  538.  
  539.      If others  may be  in the  area as you are communicating (chatting) with
  540.      users and you wish to control the information on the screen you would do
  541.      well  to  remember  that  the  Alt-W  keystroke  will  erase your screen
  542.      instantly.
  543.  
  544.      A user-name may be  BANned from  accessing the  system.   Note, however,
  545.      that doing  so merely  encourages an  undesirable to log on with another
  546.      user name.  With  the advent  of personalized  passwords, this provision
  547.      has become  more effective, since one could setup the system password to
  548.      have a low access level, which would be raised only after validation.
  549.  
  550.      Computer time  is a  resource that  you can  also control  in host mode.
  551.      Each password  may have  a designated time limit beyond which the caller
  552.      will be automatically logged off.  The number of calls  per day  made to
  553.      your system by an individual caller is also subject to control.
  554.  
  555.      One of  the more subtle security measures built into the host mode of GT
  556.      POWER is called a 'Watchdog'.  Should an authorized user  be in  the DOS
  557.      Shell or  out a  DOOR, and  for any  reason he  were to drop his carrier
  558.      (hang-up), the system would  then be  vulnerable to  the next  caller as
  559.      that  caller  could  find  the  system  "in"  DOS and he would then have
  560.      uncontrolled access to  do  as  he  pleased  to  your  system.    In the
  561.      situation  mentioned,  loss  of  carrier,  GT  will force your system to
  562.      reboot and if you setup the AUTOEXEC.BAT file properly, when  the system
  563.      completes rebooting it will invoke GT and put it back in host mode!  The
  564.      same thing would happen, for example,  if power  were to  be lost during
  565.      host mode.   When power is restored the system will automatically return
  566.      to the host mode of GT  POWER.   Note, however,  that for  those systems
  567.      that do not have a built in clock, the time and date of the system would
  568.      no longer be correct.
  569.  
  570.      As a Sysop of a host mode GT  system you  must be  aware that  there are
  571.      some legal  considerations that  you may  face.  For example, should you
  572.      allow users to place copyrighted programs onto your  system and  to then
  573.      allow  other  users  to  download  those  same  programs,  then  you are
  574.      participating in an illegal activity!   Naturally  there  is  no  way to
  575.      prevent a  user from  sending you  copyrighted material, provided he has
  576.      upload capability.  There are many things that  you can  do, however, to
  577.      stop others  from having access to that material.  For example, GT POWER
  578.      allows you to cause all files  that are  uploaded to  your system  to be
  579.      placed  into  a  special  receiving  directories,  rather  than into the
  580.      directory the user is currently using.  It  makes good  sense to  make a
  581.      receiving  directory  PRIVATE,  in  the  sense  that it is NOT listed as
  582.      available in the GTDIR.BBS to your remote users.  In  this way,  you may
  583.      review the  files received at your convenience and move them over to the
  584.      public directories if you are  satisfied  that  they  are  either public
  585.      domain or Shareware programs and files.
  586.  
  587.      Another reason  that you  will want  to do the above is that there are a
  588.      few people out in the world  that like  to send  what are  called Trojan
  589.      Horses to  BBS's.   A Trojan Horse is a program that causes some form of
  590.  
  591.                                         9
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.      damage when it is run.  It would  not be  at all  fair to  your users to
  601.      expose them  to such  programs.   So, when  it is safe for you to do so,
  602.      either run the programs you receive (using BOMBSQAD or a similar program
  603.      to prevent a problem for you).  When you are satisfied that the programs
  604.      received are safe then you can move them to public areas.
  605.  
  606.      And in the event that a user does send you a Trojan Horse or copyrighted
  607.      code, it is in your best interest to know who did so.  GT POWER provides
  608.      an optional  log file  function.   If that  is enabled,  which is highly
  609.      recommended, then  the log contains the name of the person who logged on
  610.      and sent you the file.
  611.  
  612.      This section of the document is substantially larger  than you  may have
  613.      expected it to be.  The reason should now be obvious.
  614.  
  615.      We remind you again, YOU are the person responsible for security.  It is
  616.      necessary that you know  the previous  information and  take appropriate
  617.      actions.
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.                                        10
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.      Host Mode Text Files
  667.      --------------------
  668.      The  following  text  files  must  be  created and/or maintained with an
  669.      editor that can produce plain ASCII files.  Any of the display type .BBS
  670.      files may have a DC2, Ctrl-R, character inserted into column 1 of line 1
  671.      to disable the "More?"  prompt during  display of  the file,  and a DC4,
  672.      Ctrl-T, character inserted into column 1 of line 1 to disable the Ctrl-K
  673.      and/or Ctrl-C user break, or  a  ENQ,  Ctrl-E,  character  inserted into
  674.      column 1 of any line to force a "More?" pause at that line.
  675.  
  676.      +---------------------------------------------------------------------+
  677.      |                                                                     |
  678.      |     Ctrl-E ... ENQ ... Insert a "More?" at current location.        |
  679.      |     Ctrl-R ... DC2 ... Disable "More?" during file display.         |
  680.      |     Ctrl-T ... DC4 ... Disable ^K/^C break during file display.     |
  681.      |                                                                     |
  682.      +---------------------------------------------------------------------+
  683.  
  684.      Using the  Ctrl-R to  disable the "More?" prompt is useful when the file
  685.      contains such graphic or annimation techniques that would  be spoiled by
  686.      such interruption.  Except for the GT?DIR.BBS files, every .BBS file can
  687.      have two  versions: (a)  a color  graphics version  or (b)  a plain text
  688.      version.   This is  coordinated with the ANSI graphics question asked of
  689.      callers before they logon the system.  The .BBS extension is the default
  690.      used  if  only  one  version  of  the  file can be found by GT, the .CBS
  691.      extension  is  used  to  indicate  to  GT  that  a  graphics  version is
  692.      available.   If both  versions are  available, the  .CBS version will be
  693.      shown to callers who elect graphics, if graphics are not  elected by the
  694.      caller, the .BBS version will be displayed.
  695.  
  696.  
  697.      GTSYSID.BBS     This file  is displayed as soon as the GT host detects a
  698.                      connection has been established  with an  incoming call.
  699.                      After displaying  this file, GT will ask the user if the
  700.                      terminal program he is using supports ANSI graphics.
  701.  
  702.      GTWELCOM.BBS    This file  is displayed  to a  caller just  before he is
  703.                      asked for  his name  by the GT host.  It should identify
  704.                      the system to callers.
  705.  
  706.      GTPASSWD.BBS    This file  contains  the list  of passwords  that people
  707.                      must know  to access  the system.   The  entries in this
  708.                      file are composed of one  line  per  password,  and each
  709.                      line  contains  the  following information, beginning in
  710.                      column 1:
  711.  
  712.      Lvl ([xx:xx(,n,hh:mm,path)]) Pwd Auth (1st-Name Last-Name Phone-Number)
  713.  
  714.                      These items can have a variable number of blanks between
  715.                      them,  but  the  "Lvl"  must  begin  in  column 1.  EACH
  716.                      PASSWORD, "Pwd", MUST BE UNIQUE and from 1-20 characters
  717.                      in length.
  718.  
  719.                      The () which have been shown around the call time limit,
  720.                      the daily call limit,  the daily  time limit,  the name,
  721.                      and phone  number fields,  indicate that these items are
  722.  
  723.                                                11
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.                      optional and need not be included in the file.
  733.  
  734.                      Field descriptions:
  735.                      -------------------
  736.                      Lvl .... The Access Level assigned  to this  entry.  May
  737.                               be any  character from the following sets: 0-9,
  738.                               A-Z, or a-z.   NOTE: "0"  is the  highest level
  739.                               and "z" is the lowest.
  740.  
  741.                      xx:xx .. The Call  Time Limit.   This  field is optional
  742.                               and is enclosed within  [...].   If omitted, it
  743.                               defaults to approximately 24 hours.
  744.  
  745.                      n ...... The  Daily  Call  Limit.   This field is a sub-
  746.                               field within the [...]  of the  Call Time Limit
  747.                               field.  It cannot be specified without the Call
  748.                               Time  Limit  being  specified  also.   Example:
  749.                               [1:30,2] would  grant two calls per day of 1:30
  750.                               duration each.
  751.  
  752.                      hh:mm .. The Daily Time Limit.  This field is a sub-
  753.                               field within the [...]  of the  Call Time Limit
  754.                               field.  It cannot be specified without the Call
  755.                               Time  Limit  and  the  Daily  Call  Limit being
  756.                               specified also.   Example:  [1:00,5,2:00] would
  757.                               grant five calls per day, each of up to 1 hour
  758.                               each, but a maximum of 2 hours per day total
  759.                               usage.
  760.  
  761.                      path ... The  upload  pathname.    This  specifies where
  762.                               files uploaded by a  particular  class  of user
  763.                               are to be stored.
  764.  
  765.                      pwd .... The Password.   As said above, the password may
  766.                               be from 1-20 characters  in length  and must be
  767.                               unique.    If  this  line  is a class entry the
  768.                               "pwd" field should contain  the  word  CLASS in
  769.                               capital letters.
  770.  
  771.                      auth ... The Authorizations  given to  this entry.  They
  772.                               come from the following list:
  773.  
  774.                                    UP : Upload authorized.
  775.                                    DN : Download authorized.
  776.                                    PR : Private mail authorized.
  777.                                    SY : Sysop priveledges authorized.
  778.                                    CH : Manual     directory     change    is
  779.                                         authorized   (in   absence   of   the
  780.                                         GTDIR.BBS file).
  781.                                    SH : Shell to DOS is authorized.
  782.                                    DR : Use of DOORS is authorized.
  783.                                    MS : Allows message reading.
  784.                                    FR : Allows file request/attach when using
  785.                                         the netmail programs.
  786.                                    NL :  Disable the  L)ist directory command
  787.                                         at the main menu.
  788.  
  789.                                                12
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.                                    NE : Disable the E)nter message command.
  799.  
  800.                               These authorizations  are  listed  seperated by
  801.                               commas,  following   the  "pwd"   field.    See
  802.                               examples below.  The CH authorization  is a "do
  803.                               nothing"  authorization  in most cases, because
  804.                               most systems  use a  GTDIR.BBS file.   On these
  805.                               systems the  CH option  may be used as a way to
  806.                               grant no authorization, because a total lack of
  807.                               authorization yields  the default authorization
  808.                               set: DN,UP,PR,MS.
  809.  
  810.                      1st-Name Last-Name Phone-Number
  811.                               These  three  fields  are  present  when  it is
  812.                               desired   to   allow   the   caller  "callback"
  813.                               priveledges.  In effect,  if the  caller's name
  814.                               matches the  name listed  here and he gives the
  815.                               correct password, the system will offer to call
  816.                               him at the listed number.  This allows the host
  817.                               to assume the cost of the phone charges for the
  818.                               session.  The caller must be prepared to accept
  819.                               the call, that is his modem  must be  in "auto-
  820.                               answer"  mode.    Send  "ATS0=1|" to most Hayes
  821.                               type modems to set  auto-answer mode.   The "|"
  822.                               represents  a   "carriage  return".     If  the
  823.                               conditions are met  GT  will  return  the  call
  824.                               within  15  seconds,  and  will  retry  3 times
  825.                               before giving-up hope of establishing       the
  826.                               connection.   NOTE: the  password assigned here
  827.                               for the callback, must *not* be the same as the
  828.                               caller's  personal  password  --  the  callback
  829.                               password *MUST* be unique.
  830.  
  831.                 NOTE:
  832.                      It is possible to append a single character to the level
  833.                      indicator.    Thus  "A1"  would  be a valid level.  This
  834.                      extra character  is used  to identify  a custom bulletin
  835.                      file for this caller.  This extra character is optional,
  836.                      but if present MUST BE a character that  is legal within
  837.                      a file name.  Read about BULLET files below.
  838.  
  839.                 Examples:
  840.                      A  [2:00,100,5:00,c:\goodies] MASTER  SY
  841.                      B1 [1:00] FRIEND  DN,PR
  842.                      B1 [1:00,4,2:00,c:\up] CLASS DN,UP,PR
  843.                      C  [1:30] JOGGER  DN,UP,PR,DR MARY ADAMS 1-213-555-1234
  844.                      A  [2:00,10,4:00] CLASS SY
  845.                      C2 [2:00,3,3:00] CLASS DN,UP,PR,DR
  846.  
  847.                      In  version  12.10  of  GT POWER, personalized passwords
  848.                      were  introduced.    When  a  caller  gets  his personal
  849.                      password it  is stored  in the GTMAIL.CTL file, with the
  850.                      other user  information.   The access  level assigned to
  851.                      the  password  used  by  the  caller  on  the first call
  852.                      (before a  personal password  was assigned)  will be the
  853.                      access level  assigned to  the caller  until changed via
  854.  
  855.                                                13
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.                      the Sysop Tools program.  To provide a time limit, daily
  865.                      call  limit,  and  bullet  #,  a  cross reference of the
  866.                      access level  stored in  the users  record in GTMAIL.CTL
  867.                      file  and  the  GTPASSWD.BBS  file is required.  This is
  868.                      accomplished by  placing  CLASS  cards  for  each access
  869.                      level your  system uses into the GTPASSWD.BBS file.  The
  870.                      format of  the  CLASS  card  is  the  same  as  a normal
  871.                      password  entry,  except  the  word CLASS must appear in
  872.                      uppercase  letters.    In  addition,  the  CLASS entries
  873.                      cannot  be  used  to  provide callbacks, normal password
  874.                      entries must be provided for  that  purpose.    Here are
  875.                      some example CLASS entries:
  876.  
  877.                 Examples:
  878.                      A1  [2:00,5,3:00]  CLASS  DN,UP,PR,DR,SH,MS
  879.                      B3  [1:30,2,2:00]  CLASS  DN,PR,MS
  880.                      K2  [:45,1,:45]    CLASS  DN,UP,PR,DR,MS
  881.  
  882.                      The first  CLASS entry  establishes a  class for callers
  883.                      with an 'A' access level, grants them 2 hours of session
  884.                      time, and a daily call limit of 5 calls, 3 hours of time
  885.                      per day, and gives  them  the  authorizations: Download,
  886.                      Upload, Private  mail, use DOORS, Shell to DOS, and read
  887.                      messages.  The other  entries grant  lesser time amounts
  888.                      to  the  'B'  and  'K'  classes.  The 'B' class is given
  889.                      Download,    Private    mail,    and    read    messages
  890.                      authorizations.    The  'K'  class  is  given  Download,
  891.                      Upload,  Private  mail,  use  DOORS,  and  read messages
  892.                      authorizations.    Note:  if  you neglect to setup CLASS
  893.                      entries then once your callers have  been assigned their
  894.                      own  personal  passwords,  this is automatically done by
  895.                      GT, then they will  have unlimited  time access  to your
  896.                      system, the default authorizations, and they will not be
  897.                      given a bullet #.
  898.  
  899.                +-----------------------------------------------------------+
  900.                |                                                           |
  901.                |      Remember to give callers the MS authorization        |
  902.                |      so they can "read messages".  And setup a CLASS      |
  903.                |      entry for each different access level in use.        |
  904.                |                                                           |
  905.                +-----------------------------------------------------------+
  906.  
  907.      GTBULLET.BBS    This file  is  displayed  for  the  caller  after he/she
  908.                      completes logon.   It  is useful to leave notes here for
  909.                      expected callers.
  910.  
  911.      BULLETx.BBS     The "x" may be any character that can be a legal part of
  912.                      a  filename.    This  character must match the character
  913.                      which is found after the level indicator in the password
  914.                      file, to  enable custom  bulletin files  to be displayed
  915.                      for callers.  For example: if a caller's level was "BZ",
  916.                      then  the   program  would   search  for  a  file  named
  917.                      BULLETZ.BBS to display whenever  the caller  logged onto
  918.                      the program.
  919.  
  920.  
  921.                                                14
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.                 NOTE:
  931.                      Custom bulletin  files are OPTIONAL.  If you do not wish
  932.                      to use them, simply use single letters for  access level
  933.                      indicators.
  934.  
  935.      GTMENU.BBS      This file is displayed for callers as the main menu.  It
  936.                      may be suppressed by a caller by selecting X)pert mode.
  937.  
  938.      GTHELP.BBS      This file is displayed for the caller if he/she requests
  939.                      help with the main menu.
  940.  
  941.      GTBYE.BBS       This file  is displayed  for the caller when he/she logs
  942.                      off, i.e. selects the  G)oodbye  command  from  the main
  943.                      menu.
  944.  
  945.      GTBYEx.BBS      This is a custom bye file.  The 'x' may be any character
  946.                      that can be a legal part of a  filename.   It comes from
  947.                      the GTPASSWD.BBS file, as the letter following the level
  948.                      indicator.    Most  commonly  a  number.     See  custom
  949.                      BULLETx.BBS files above.
  950.  
  951.      GTUSER.BBS      This  file  is  created  whenever  a call comes into the
  952.                      system.  It will  contain the  access level  and name of
  953.                      the current  caller, or  if no  call is in progress, the
  954.                      previous caller to the system.   The file  contains just
  955.                      this 1 line of text.  The exact format is:
  956.  
  957.      Lvl 1st-Name Last-Name auth baud-rate ANSI-opt last-on limit event time
  958.  
  959.                      The line  is free  format with spaces delimiting fields.
  960.                      The "auth" field will  contain the  authorizations given
  961.                      this caller  from the  GTPASSWD.BBS file  when he logged
  962.                      onto the system.  The "baud-rate"  field will  be one of
  963.                      the following numbers: 300, 1200, 2400, 9600 or the word
  964.                      LOCAL, if the sysop is logged-on.  The  "ANSI-opt" field
  965.                      will contain  "NOANSI" if  the caller  doesn't want ANSI
  966.                      graphics, or "ANSI" if he does  want the  graphics.  The
  967.                      "last-on" field  contains the  date the user last called
  968.                      the system.   The  "limit" field  contains the remaining
  969.                      time  the  caller  has  left  for the current call.  The
  970.                      "event" field contains the time remaining until the next
  971.                      event  is  scheduled.    The  "time"  field contains the
  972.                      current time in  "xx:xx"  format.    The  time remaining
  973.                      fields are integer showing time left in minutes.
  974.  
  975.                      The  purpose  of  this  information  is to supply needed
  976.                      control information to external programs that run either
  977.                      in the Shell to DOS or DOOR environment.
  978.  
  979.      GTDIR.BBS       This  file  contains  a  list of directories that may be
  980.                      accessed by callers.   There are  two types  of lines in
  981.                      this file: the actual directory lines and comment lines.
  982.                      The comment lines are  displayed to  the caller  when he
  983.                      asks to see the list of directories.  The list displayed
  984.                      will  contain  only  those  directories  the  caller  is
  985.                      authorized to access.  The formats:
  986.  
  987.                                                15
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.                 Comment Lines:
  998.                      Contain a  blank in the 1st column, the remainder of the
  999.                      line is displayed for the caller.
  1000.  
  1001.                 Directory Lines:
  1002.                      Column 1 - access Level.  The minimum  level required to
  1003.                      access the  directory.   If this  column contains an "="
  1004.                      then the actual line  is shifted  to the  right 1 column
  1005.                      and  the  "="  acts  to  reserve  the  directory for the
  1006.                      indicated access level  - which  would now  be in column
  1007.                      2.  (See example.)
  1008.  
  1009.                      One or  more blank  columns follows  the level, then the
  1010.                      complete DOS name of the directory,  including all drive
  1011.                      and PATH information.  One or more blank columns follows
  1012.                      the directory name, then a description  of the directory
  1013.                      is given.   When  a caller selects the C)hange directory
  1014.                      command,  the  list   of   choices   will   display  the
  1015.                      descriptions you provide here, so try to be helpful.
  1016.  
  1017.                 Examples:
  1018.  
  1019.                        This is a comment.  (Since column 1 is blank)
  1020.                      A   C:\DOS\TEST    The description goes here.
  1021.                      =B  C:\LOTUS\DATA  This is for "B" level callers only.
  1022.                      C   A:\            The description again goes here.
  1023.  
  1024.                      This example  shows three  directories, one  with an "A"
  1025.                      access level, one with  a "C"  access level.   These are
  1026.                      the  minimum  levels  that  callers   must have to "see"
  1027.                      these directories.    The  "=B"  directory  may  only be
  1028.                      accessed by a caller with the "B" access level.
  1029.  
  1030.                 NOTE:
  1031.                      When host  mode is  started, the  then default directory
  1032.                      will be made available to all callers, regardless of the
  1033.                      contents  of  GTDIR.BBS.    So  it  is advised that this
  1034.                      directory require the least security and that it  be the
  1035.                      1st entry in the GTDIR.BBS file.
  1036.  
  1037.      GTDDIR.BBS      This file  controls access  to the  GT DOOR system.  Its
  1038.                      function is much like GTDIR.BBS is for file directories.
  1039.                      It serves  as a  way to  add security to doors, document
  1040.                      them and pass parameters to them.   Each  door must have
  1041.                      an entry  in this  file, there  are no  comment lines in
  1042.                      this file.  Each line  in  this  file  follows  the this
  1043.                      syntax:
  1044.  
  1045.                Lvl ([comment_here_with_no_spaces]) (Prompt message here:)
  1046.  
  1047.                      The ()  indicate which  fields are optional and need not
  1048.                      be included in the file.
  1049.  
  1050.                      As with  the  GTDIR.BBS  file,  the  "Lvl"  controls the
  1051.                      minimum  access  level  required  to open the door.  The
  1052.  
  1053.                                                16
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.                      [comment] is optional, but must be enclosed within [...]
  1063.                      if  it  appears  and  no  blanks  are allowed within the
  1064.                      comment field.   If  a parameter  must be  passed to the
  1065.                      DOOR, then the optional prompt field must be added.  The
  1066.                      answer given to this prompt by the caller will be passed
  1067.                      to the DOOR as command line argument %3.
  1068.  
  1069.                      Examples:
  1070.                          B  [this-is-door-1]
  1071.                          Z  [this-is-door-2]  Enter filename:
  1072.                          S  [this-is-door-3]
  1073.  
  1074.                      In the  example above,  the 2nd door has a prompt listed
  1075.                      that indicates that this  door  requires  a  filename be
  1076.                      passed.   This could  be for example to implement an ARC
  1077.                      view  type  door,  where  the  name  of  the  ARC  to be
  1078.                      processed  might  need  to  be  supplied.   The caller's
  1079.                      response will be passed as command  line argument  %3 to
  1080.                      the GTDOOR2.BAT file in this case.
  1081.  
  1082.                +------------------------------------------------------------+
  1083.                |                                                            |
  1084.                |     Please note, the order of the lines in this file       |
  1085.                |     must be 1st door on 1st line, 2nd door on 2nd line,    |
  1086.                |     etc.  The lines must be in 1, 2, 3... order.           |
  1087.                |                                                            |
  1088.                +------------------------------------------------------------+
  1089.  
  1090.      GTBMENU.BBS     This file is the bulletin menu file.  It should list the
  1091.                      numbered bulletin files.   The  numbered  bulletin files
  1092.                      should  be  located  in  the "Default file section", and
  1093.                      their file names should simply be 1, 2, etc.   This menu
  1094.                      file will  be displayed  as users  logon your system and
  1095.                      besides the numeric bulletins, two alpha  options should
  1096.                      be listed:  L)ist logon bullets and Q)uit bulletin menu.
  1097.                      An example of a GTBMENU.BBS file:
  1098.  
  1099.                               1.  Bullet #1 description here.
  1100.                               2.  Bullet #2 description here.
  1101.                               .
  1102.                               .  etc.
  1103.                               .
  1104.                               L)ist logon bullets
  1105.                               Q)uit bulletin menu.
  1106.  
  1107.      GTMDIR.BBS      This file  controls the  multiple message  bases that GT
  1108.                      can support.  The format of this file is the same as the
  1109.                      format for the GTDIR.BBS  file, except  that you  have 1
  1110.                      additional option  for column  1, you may place a '*' in
  1111.                      column 1 of an line in this file  and then  that message
  1112.                      area will  become a  'by application only' message base.
  1113.                      The caller applies for entrance by trying to  select the
  1114.                      message  area  via  the  A)rea  change command.  GT will
  1115.                      inform the caller that application has been accepted and
  1116.                      the Sysop  must approve.   The users name will be placed
  1117.                      into the GTMAIL.CTL  file  associated  with  the message
  1118.  
  1119.                                                17
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.                      base, but  the BAN  bit will  be set, the Sysop must use
  1129.                      Sysop Tools to reset the BAN bit so that the  caller can
  1130.                      be admitted.
  1131.  
  1132.                      When  setting  up,  the  Sysop  should  insure  that all
  1133.                      sub-directories listed in GTMDIR.BBS exist, but  GT will
  1134.                      automatically provide  all the control files and message
  1135.                      directories, as needed.
  1136.  
  1137.                      All message areas must have an entry in this file.   The
  1138.                      main default  message area  must be  open to all callers
  1139.                      and must use  the  same  pathname  as  the  message base
  1140.                      pathname  in  GT's  configuration  file.  The GTMDIR.BBS
  1141.                      file must be located with the  other .BBS  files in GT's
  1142.                      home directory.
  1143.  
  1144.           +--------------------------------------------------------------+
  1145.           |                                                              |
  1146.           |    The PATH name portion of the lines in the GTMDIR.BBS      |
  1147.           |    file may be prefixed with either a  ^  and/or a  ~ .      |
  1148.           |                                                              |
  1149.           |    The  ^  designates a message area that can support        |
  1150.           |    public messages only.   The  ~  designates a message      |
  1151.           |    area that is used as a netmail area(see netmail docs).    |
  1152.           |                                                              |
  1153.           +--------------------------------------------------------------+
  1154.  
  1155.                      Examples:
  1156.  
  1157.                      Z   ^C:\GTBBS\OPEN       Public Message Base
  1158.                      E    C:\GTBBS\GENERAL    General Message Base
  1159.                      F    C:\GTBBS\SPECIAL    Special Message Base
  1160.                      Z   ~C:\GTBBS\PUBLIC     Public Netmail Area
  1161.  
  1162.      GTDOORS.BBS     This file  is displayed  for the  caller when he selects
  1163.                      the O)pen DOORS option from the main menu.  It is a pure
  1164.                      text file,  which should  contain your  DOOR menu.  Each
  1165.                      DOOR is assigned a number, 1-99, and should be listed on
  1166.                      this menu by the number needed to select the door.
  1167.  
  1168.      GTDOORn.BAT     These are  the DOOR  files themselves.   These are batch
  1169.                      files, much  like  the  Shell  to  DOS  batch  file, but
  1170.                      instead  of  executing  another  copy of COMMAND.COM, it
  1171.                      executes your DOOR program.  The  mechanism of  the DOOR
  1172.                      is actually  the CTTY  commands at  the start and end of
  1173.                      the file.   The  CTTY redirects  the console  to the COM
  1174.                      port  at  the  start  of  the DOOR file, and back to the
  1175.                      console at the end.  Sample DOOR files are included with
  1176.                      the package.  Here is a short example:
  1177.  
  1178.                      %1 COM%2
  1179.                      EDLIN %3
  1180.                      %1 CON
  1181.  
  1182.                      The  %1  will  become  "CTTY"  or "REM", and the %2 will
  1183.                      become the port number, thru substitution  by DOS.   The
  1184.  
  1185.                                                18
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.                      "REM" substitution  is used  when the  DOOR is being run
  1195.                      locally by the Sysop to check it out.  A DOOR that works
  1196.                      in  the  local  mode  may  not work for a remote caller,
  1197.                      because the DOOR program may not  use the  DOS functions
  1198.                      to perform I/O with the console.
  1199.  
  1200.                      Remember that  the 3rd  command line  argument is passed
  1201.                      from the GT host to  the  DOOR  containing  the response
  1202.                      from the  caller to  a prompt  you have  placed into the
  1203.                      GTDDIR.BBS file.  In this case, it would  have asked the
  1204.                      caller which file he wanted to edit.
  1205.  
  1206.      ANSWERn.BBS     This file  contains the  answers supplied by the callers
  1207.                      to the 'n' questionaire, that  you  have  stored  in the
  1208.                      QUESTn.BBS file.  The format of this file is as follows:
  1209.                      each answer  given by  a user  is written  on a separate
  1210.                      line to  this file,  the answers  are grouped by placing
  1211.                      the users name, from logon, onto  the first  line of the
  1212.                      group, enclosed  within <<  ... >>,  following this each
  1213.                      answer appears on a  separate  line  and  each  group is
  1214.                      terminated with a line containing a single period.  Here
  1215.                      is an example:
  1216.  
  1217.                          << Paul Meiners >>
  1218.                          9350 Country Creek #30
  1219.                          Houston, TX 77036
  1220.                          713-772-2090
  1221.                          .
  1222.                          << Susie Meiners >>
  1223.                          1245 Sunnyside Dr.
  1224.                          Houston, TX 77081
  1225.                          713-894-3465
  1226.                          .
  1227.  
  1228.                      The example shown above contains two  groups of answers.
  1229.                      As  GT  accumulates  answers  it will continue to append
  1230.                      them to the end  of this  file.   If this  file does not
  1231.                      exist,  GT  will  create  it.    The  Sysop should avoid
  1232.                      editing this file, because  any  attempt  to  do  so may
  1233.                      render GT incapable of adding answers to it.
  1234.  
  1235.      QUESTn.BBS      This file  contains the questionaire for callers to fill
  1236.                      out.  This feature is optional.  The file is in template
  1237.                      format, using  the [------]  construct to indicate where
  1238.                      GT should gather answers to questions.  For example:
  1239.  
  1240.                                          [------------]
  1241.                      Enter Phone Number:
  1242.  
  1243.                      Would direct GT to collect the phone number,  showing GT
  1244.                      where to collect the answer and the maximum width answer
  1245.                      to accept.  Each answer can be up to 80  characters long
  1246.                      and there may be up to 50 questions per questionaire.
  1247.  
  1248.                      After  having  filled  out  the questionaire, the caller
  1249.                      will be asked if he wishes  his answers  to be recorded.
  1250.  
  1251.                                                19
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.                      If  he  indicates  in  the negative, GT will discard the
  1261.                      answers.
  1262.  
  1263.                      The questionaire is optional, and if  the user  tries to
  1264.                      fill out  a questionaire  that cannot  be found, GT will
  1265.                      indicate to the caller  that  there  is  no questionaire
  1266.                      currently available.
  1267.  
  1268.                      Date/time   stamping   can   be  done  automatically  by
  1269.                      including a special code in the questionnaire file.  For
  1270.                      example:
  1271.  
  1272.                           [%DT]
  1273.  
  1274.                      Would cause  the current date and time to be recorded in
  1275.                      the answer file (no  question would  be asked  here), of
  1276.                      course  the   balance  of  the  questionnaire  would  be
  1277.                      processed in a normal manner.
  1278.  
  1279.                      There can be up to 99  different questionnaires  for the
  1280.                      caller  to   choose  from.    The  GTQMENU.BBS  file  is
  1281.                      displayed with a list of all available questionnaires.
  1282.  
  1283.      PQUESTn.BBS     This file is displayed for the  caller immediately after
  1284.                      he  selects  the  questionaire he/she wishes to complete
  1285.                      from the questionnaire menu.  It  should explain  to the
  1286.                      caller the  basic purpose  of the questionaire and allow
  1287.                      him to consider if he wishes to continue to fill out the
  1288.                      questionaire.  Immediately after this file is displayed,
  1289.                      the caller will receive a prompt, asking if he wishes to
  1290.                      continue and fill out the questionaire.
  1291.  
  1292.                      The PQUESTn.BBS file is optional.
  1293.  
  1294.      GTQMENU.BBS     This file is listed for the caller when he selects the Q
  1295.                      option from the main menu.    It  is  a  menu  file that
  1296.                      should contain  a list  (in text format) for the user to
  1297.                      choose which questionnaire he  wishes to  complete.  For
  1298.                      example:
  1299.  
  1300.                          1.  Order form for GT POWER.
  1301.                          2.  Order form for Turbo CALC.
  1302.                          3.  User poll.
  1303.  
  1304.                      This   shows   only   three   options,  as  many  as  99
  1305.                      questionnaires may be supported by the system.
  1306.  
  1307.      PROTOCOL.BBS    This  file  contains  the  protocol  menu  that  will be
  1308.                      displayed  for   the  caller  if  he  initiates  a  file
  1309.                      transfer.    It  is  provided  so  that  the  Sysop  can
  1310.                      customize this  menu to  his own taste.  It is pure text
  1311.                      format, except  for the  first line,  which contains the
  1312.                      list of  protocols the  Sysop wishes to activate for his
  1313.                      system.   The  format  of  this  activation  line  is as
  1314.                      follows:
  1315.  
  1316.  
  1317.                                                20
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.                          ;XYZB1TWKMSG
  1327.  
  1328.                      Where the  ";" appears  in column  1 of  the line.  Each
  1329.                      letter activates a specific protocol, as follows:
  1330.  
  1331.                          X ... Xmodem
  1332.                          Y ... Ymodem
  1333.                          Z ... Zmodem
  1334.                          B ... Ymodem Batch
  1335.                          1 ... 1k Telink
  1336.                          T ... Telink
  1337.                          W ... WXmodem
  1338.                          K ... Kermit
  1339.                          M ... MegaLink
  1340.                          S ... SEAlink
  1341.                          G ... Ymodem-G
  1342.  
  1343.                      By omitting  the activation  letter from  this line, the
  1344.                      Sysop  may  disable  the  corresponding  protocol.   For
  1345.                      example:
  1346.  
  1347.                          ;XYZT
  1348.  
  1349.                      Would activate and allow  on the  Xmodem, Ymodem, Zmodem
  1350.                      and Telink  protocols.  The other protocols would not be
  1351.                      allowed.
  1352.  
  1353.                      The PROTOCOL.BBS  file is  optional, if  omitted GT will
  1354.                      display a canned protocol menu.
  1355.  
  1356.      WELCOME.BBS     Each  message  base  may  have  a  welcome  screen.   It
  1357.                      present, it  resides in  the directory  with the message
  1358.                      .CTL files  and is displayed for the caller as he enters
  1359.                      the message base.  It is in the  nature of  a conference
  1360.                      welcome screen.  The WELCOME.BBS file is optional.
  1361.  
  1362.      MBULLETx.BBS    Each message base may have bulletins associated with it.
  1363.                      These bulletin files will  reside in  the directory with
  1364.                      the  message  .CTL  files  and will be displayed for the
  1365.                      caller after the WELCOME.BBS  file  has  been displayed.
  1366.                      The  bulletin  numbers  are coordinated with the regular
  1367.                      bulletin numbers  in the  main GT  directory, which come
  1368.                      from  the   bulletin  numbers  on  the  entries  in  the
  1369.                      GTPASSWD.BBS file.
  1370.  
  1371.                      The MBULLETn.BBS files are optional.
  1372.  
  1373.      SYSOP.BBS       This file contains the custom welcome to Chat Mode - the
  1374.                      mode  that  is  entered  when  the Sysop answers a Page.
  1375.                      Normally this  file contains  something like  ", here is
  1376.                      the SYSOP."   It  may be  changed to reflect the name of
  1377.                      the Sysop, or whatever.  Using the normal  contents, the
  1378.                      caller would see:
  1379.  
  1380.                          Caller Name, here is the SYSOP.
  1381.  
  1382.  
  1383.                                                21
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.                      Of course, the actual caller's name will replace "Caller
  1393.                      Name".
  1394.  
  1395.      SCHEDULE.BBS    The "scheduler" is code  within the  GT host  mode which
  1396.                      allows the  sysop to schedule events.  The format of the
  1397.                      SCHEDULE.BBS file is very simple.  The file  is composed
  1398.                      of lines  that begin with a time or range of times, then
  1399.                      the command to be executed at the specified time.
  1400.  
  1401.                      Examples:
  1402.  
  1403.                      03:00       copy file1 file2
  1404.                      03:30       QUIT 5
  1405.                      04:00-05:00 QUIT 6
  1406.                      06:00       maint
  1407.  
  1408.                      Based on the above example, at 3 a.m.  the GT  host will
  1409.                      copy  file1  to  file2  (any DOS command can be executed
  1410.                      like this).  Then  at 3:30  a.m. the  GT host  will quit
  1411.                      execution and set an ERRORLEVEL of 5, the runstream that
  1412.                      is controlling GT must be  prepared  to  deal  with this
  1413.                      ERRORLEVEL, else  nothing will  be done.   Also the user
  1414.                      must insure that the GT host is restarted.  At  any time
  1415.                      between  4  a.m.  and  5  a.m.  the  GT  host  will quit
  1416.                      execution and an ERRORLEVEL of 6 -- this one is meant to
  1417.                      illustrate a  quit to the netmail function, which should
  1418.                      always be started with a range of times, so that in case
  1419.                      it cannot  start exactly  on the button of 4 a.m. the GT
  1420.                      host will start it, even if it is late starting.   Again
  1421.                      the runstream that is controlling GT must be prepared to
  1422.                      deal with the indicated ERRORLEVEL, 6 in this  case, and
  1423.                      must restart  the GT  host after  5 a.m.  Then at 6 a.m.
  1424.                      the GT host will execute the 'maint' batch  file.  NOTE:
  1425.                      when the  GT host starts a command like this, it is done
  1426.                      via the  SHELL mechanism,  this requires  alot of memory
  1427.                      and  it  is  not  recommended  if  you  are using multi-
  1428.                      tasking software.   The  netmail  documentation includes
  1429.                      examples of how this can be setup.
  1430.  
  1431.                      A sysop  may also add a special line to the SCHEDULE.BBS
  1432.                      file which will allow control of the P)age function from
  1433.                      the main  menu.   The OFFICE command allows the sysop to
  1434.                      specify when a P)age will be acceptable.  If a  P)age is
  1435.                      attempted outside  of the specified time range, then the
  1436.                      caller will be notified about the sysop's OFFICE HOURS.
  1437.  
  1438.                      Here is the format:  OFFICE=08:00-21:00
  1439.  
  1440.                      The hours must be  given in  24:00 notation,  and please
  1441.                      notice that  leading zeros,  must be supplied.  08:00 is
  1442.                      correct, 8:00 is wrong!  No embedded spaces  are allowed
  1443.                      in this format.  It must be as shown above.
  1444.  
  1445.                +-----------------------------------------------------------+
  1446.                |                                                           |
  1447.                |                           NOTE                            |
  1448.  
  1449.                                                22
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.                |                                                           |
  1459.                |     Five minutes prior to a external event, GT POWER      |
  1460.                |     will cease accepting calls and wait for the event     |
  1461.                |     start time.  Callers who call in the vicinity of      |
  1462.                |     an event will have their time on the system cutback   |
  1463.                |     so that the caller will be off the system before      |
  1464.                |      the event is to start.                                |
  1465.                |                                                           |
  1466.                |                                                           |
  1467.                +-----------------------------------------------------------+
  1468.  
  1469.      FILES.BBS       When you create a directory to contain files, either for
  1470.                      upload  or  download,  you  should  include  within  the
  1471.                      directory a file named FILES.BBS.  It should contain the
  1472.                      descriptions   of   the   files   contained  within  the
  1473.                      directory.  When the caller selects the "F"  option from
  1474.                      the  main  menu,  the  content  of  this  file  will  be
  1475.                      displayed.
  1476.  
  1477.                      The FILES.BBS that is located in  the appropriate upload
  1478.                      directory will be updated automatically with information
  1479.                      supplied by the uploader as follows:
  1480.  
  1481.                      Position     Description
  1482.                      --------     -----------
  1483.                      1-12         Filename
  1484.                      13           Blank
  1485.                      14-16        File size in kilobytes
  1486.                      17           Blank
  1487.                      18-25        Upload date
  1488.                      26           Blank
  1489.                      27-79        File description
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.                                                23
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.      Host Mode Control Files and Directories
  1525.      ---------------------------------------
  1526.      During the operation of the GT  host mode,  two files  and one directory
  1527.      will be  created automatically,  for each message base.  The Sysop Tools
  1528.      program must be used to maintain  these  files,  when  the  need arises.
  1529.      Here is an overview of the purpose of these files:
  1530.  
  1531.      GTMESSAG.CTL    This  file  contains  the  header  information  for  all
  1532.                      messages maintained by the GT host.  Such information as
  1533.                      sender name,  addressee name,  date of entry and whether
  1534.                      or not the message has been received, are kept here.
  1535.  
  1536.      GTMAIL.CTL      This file contains information about the callers to your
  1537.                      GT host.   Such  as their  name, where  they are calling
  1538.                      from, the  last  message  they  have  read,  etc.   Also
  1539.                      contained in  this file  are the  personal passwords and
  1540.                      access levels of each caller.
  1541.  
  1542.      GTMSGS          This is a sub-directory where the  text of  the messages
  1543.                      is stored.   Each  message is  stored in a separate file
  1544.                      without the header information, which is  stored  in the
  1545.                      GTMESSAG.CTL  file.    The  messages  are named with the
  1546.                      message number as the  main  filename  and  extension of
  1547.                      .MSG.
  1548.  
  1549.      These files  will be  created as  necessary by the GT host, they will be
  1550.      created in the directory pointed to by the "Message Base PATH" in the GT
  1551.      configuration, or  if that  is not  used in the home directory and drive
  1552.      from the environment variable GTPATH, or if that  variable is  not used,
  1553.      in the  default directory  at program start-up.  The program Sysop Tools
  1554.      will perform needed maintenance of these files: for  example renumbering
  1555.      the messages,  deleting obsolete  users, providing reports and listings.
  1556.      HOWEVER, do not run Sysop Tools prior to establishing these files.
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.                                        24
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.      Running Host Mode
  1591.      -----------------
  1592.      Once installed, host mode is  fairly  self-explanatory,  but  here  is a
  1593.      quick once over.
  1594.  
  1595.      Host mode  is started  by pressing "ALT -".  GT will automatically enter
  1596.      "Half duplex" mode.  This is so that anything typed on the  host console
  1597.      will echo  so that  it can  be   seen.   Then GT will send the host mode
  1598.      Modem Init String to the  modem and  wait  for  a  call.    While  GT is
  1599.      waiting for  a call,  there are  4 commands available: [Esc], which will
  1600.      terminate host mode, carriage return, which allows the Sysop to logon to
  1601.      GT's  host  mode  from  the  local console, [Ctrl-L], which turns on the
  1602.      system printer for logging,  and [Ctrl-S]  to load  a fresh  copy of the
  1603.      schedule from  disk.   Note that you must have logging enabled in the GT
  1604.      configuration,  via  Alt-I,  the  [Ctrl-L]  command  merely  enables the
  1605.      printer,  so  that  whatever  is  logged  will also appear on the system
  1606.      printer.  There also is  a  command  line  option  to  turn  on  the log
  1607.      printer.   If you place "/p" on the GT command line, the printing of the
  1608.      log will automatically be turned on from the very start of the program.
  1609.  
  1610.      Once GT has  answered  an  incoming  call,  there  are  several commands
  1611.      available to the operator, as follows:
  1612.  
  1613.      +---------------------------------------------------------------------+
  1614.      |                                                                     |
  1615.      |                          SYSOP COMMANDS                             |
  1616.      |                                                                     |
  1617.      |      Alt-H      List available sysop commands.                      |
  1618.      |                                                                     |
  1619.      |      Ctrl-D     List current schedule on the screen.                |
  1620.      |      Ctrl-L     Toggle log printer on/off.                          |
  1621.      |      Ctrl-N     Raise caller's access level while on-line.          |
  1622.      |      Ctrl-P     Sysop initiated chat mode.                          |
  1623.      |      Ctrl-R     Reset time limit, gives caller more time.           |
  1624.      |      Ctrl-S     Load new schedule from disk.                        |
  1625.      |      Ctrl-T     Terminate after current caller disconnects.         |
  1626.      |      Ctrl-X     Abort the caller.                                   |
  1627.      |      Ctrl-Z     Terminate chat mode.                                |
  1628.      |                                                                     |
  1629.      +---------------------------------------------------------------------+
  1630.  
  1631.  
  1632.      Command Line Usage
  1633.      ------------------
  1634.      When  you  start  GT,  there  are several command line switches that are
  1635.      available to you:
  1636.  
  1637.  
  1638.      name      You may indicate a script file to be executed upon start-up of
  1639.                GT.
  1640.  
  1641.      /D        You may  indicate whether  or not you wish to have GT drop the
  1642.                DTR signal to the modem when GT exits back to DOS.
  1643.  
  1644.      /C        You may indicate whether  you are  connected via  cable to the
  1645.                host computer.
  1646.  
  1647.                                        25
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.      /K        You may  initiate the  capture mode from the very start of the
  1658.                program.
  1659.  
  1660.      /P        You may enable logging to the system printer.
  1661.  
  1662.      /1        You may  configure the  port addresses  in use  by your serial
  1663.                port.  The actual port number to be configured, 1-4, is placed
  1664.                after the slash.  The new base address  of the  indicated port
  1665.                is placed  after the  slash number  with an intervening blank.
  1666.                The address must be given with a leading $ sign and be  in hex
  1667.                notation, for example $3F1 would be a valid address.  Refer to
  1668.                your hardware documentation for the correct  address to  use.
  1669.                GT uses  standard addresses  if you  do not override with this
  1670.                option.
  1671.  
  1672.      /Rn       This option  applies to  the GT  host mode.   It specifies the
  1673.                ring number  upon which  GT will  answer incoming  calls.  For
  1674.                example /R3  would cause  GT to answer on the 3rd ring.  NOTE:
  1675.                that the host mode modem  init  string  must  contain  S0=0 to
  1676.                allow this to work properly.
  1677.  
  1678.      /RBmm:nn  This option applies to the GT host mode.  It specifies that GT
  1679.                should answer the modem after a "ring back".   To enable this
  1680.                to work properly, the host mode modem init string must contain
  1681.                S0=0.  Once installed properly this  option makes  the GT host
  1682.                mode answer  the phone  on the  2nd or 3rd ring after a gap of
  1683.                between 'mm' and 'nn' seconds.   If the  gap between  rings is
  1684.                less than 'mm' seconds or  greater than  'nn' seconds, GT will
  1685.                not answer the phone.  This allows  the  use  of  an answering
  1686.                machine on the same phone line as the computer.  The answering
  1687.                machine should be programmed  to answer  on a  later ring, the
  1688.                4th for example.  The 'mm:nn' is optional, and will default to
  1689.                a 9 to 32 second gap.
  1690.  
  1691.      +----------------------------------------------------------------------+
  1692.      |                                                                      |
  1693.      |     This listing of command line switches came from the main GT      |
  1694.      |     documentation file.  Please refer to that document for sample    |
  1695.      |     usage of these switches.                                         |
  1696.      |                                                                      |
  1697.      +----------------------------------------------------------------------+
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.                                        26
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722.      Host Mode LOG
  1723.      -------------
  1724.      A few  sections above,  I suggested  that logging  be TRUE,  while GT is
  1725.      running in Host Mode.  Here is why: during Host Mode operations, GT will
  1726.      log all of the  calls received,  who called  and the  password used.   A
  1727.      record will  also be  kept of  who tranfered each file, how long it took
  1728.      and the efficiency of the transfer.   I  consider the  gathering of this
  1729.      information to be critical to the operation of a GT Host.
  1730.  
  1731.      The Shell to DOS
  1732.      ----------------
  1733.      The DOS  Shell allows  remote callers to operate your computer remotely.
  1734.      When the "Shell to DOS" option  of the  main menu  is selected,  GT will
  1735.      shell to  the file  GTDOOR.BAT.   This file  will set  up for the remote
  1736.      shell by executing the proper CTTY command, then execute a secondary DOS
  1737.      shell and let the user into the system.  He will have the console, so be
  1738.      cautious!  The caller will be instructed to issue the  "EXIT" command to
  1739.      return to GT.
  1740.  
  1741.      While the  DOS Shell  is active  and the caller is out in the system, GT
  1742.      will not be idle.  GT will act as a watchdog.  If the caller should hang
  1743.      up while  the DOS  shell is  active, GT will force the system to re-boot
  1744.      and will drop the DTR signal to the modem.  If commands to start  GT are
  1745.      placed in the AUTOEXEC.BAT file and a script is used to start Host Mode,
  1746.      then GT will automatically recycle.   The script  command to  start Host
  1747.      Mode is simply HOST.
  1748.  
  1749.      NOTE:
  1750.           For  this  process  to  work  correctly,  the COMMAND.COM file must
  1751.           reside in a directory pointed to by the  PATH environment variable.
  1752.           In order  for this  to work  on a  normal drive C: hard disk, "C:\"
  1753.           should be added to the PATH variable.  For example:
  1754.  
  1755.                       PATH=c:\dos;c:\lotus;c:\
  1756.  
  1757.           This will ensure that  the  COMMAND.COM  file  can  be  located for
  1758.           execution by the GTDOOR.BAT runstream.
  1759.  
  1760.           A problem with the DOS Shell has been reported when using DOS 2.xx.
  1761.           This is  caused by  the fact  that DOS  2.xx does  not support full
  1762.           pathnames  when  requesting  the  execution  of a program.  To work
  1763.           around this problem, if  you have  DOS 2.xx,  you should  place the
  1764.           GTDOOR.BAT  file  in  some  other  directory  besides  the  GT home
  1765.           directory.  If GT finds GTDOOR.BAT in his  home directory,  then GT
  1766.           will issue  an EXEC  function with full pathname, otherwise GT will
  1767.           not specify any pathname  and will  rely on  the DOS  PATH command.
  1768.           The directory  where GTDOOR.BAT is stored must be pointed to by the
  1769.           DOS PATH command in this case.
  1770.  
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.                                           27
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.      Using the Shell to DOS
  1789.      ----------------------
  1790.      What can one do,  once one  is running  DOS remote  via a  CTTY command?
  1791.      Well, one  can't use any of the Fn keys or the other special keys on the
  1792.      IBM key-board!  One can't run  any  program  that  does  direct hardware
  1793.      control of  the screen  or keyboard.  All screen and keyboard input must
  1794.      be done through DOS.  Well, then what can one do?   One can  run any DOS
  1795.      command; for  example COPY,  ERASE, DIR and others, including EDLIN, all
  1796.      work properly.  In fact, any program that uses the  standard DOS handles
  1797.      for input and output to the console will work.  But one still won't have
  1798.      F1 - F10 or the other special keys.  Well, that's not  quite so...if the
  1799.      Host Mode computer is setup so that the ANSI.SYS device driver is loaded
  1800.      via the CONFIG.SYS file.   Just  put  a  line  like  this  one  into the
  1801.      CONFIG.SYS file:
  1802.  
  1803.                                DEVICE=ANSI.SYS
  1804.  
  1805.      Naturally, ANSI.SYS  must be  located in  the root directory of the boot
  1806.      disk.  After that has been  done, re-boot  the computer.   ANSI.SYS will
  1807.      then be  loaded.   One can  now re-map  the keyboard so that the special
  1808.      keys are mapped to Ctrl keys instead.  This will  enable programs  to be
  1809.      run that  use these  keys; for example EDLIN uses the arrow keys as well
  1810.      as several function keys.
  1811.  
  1812.      How does one re-map keys with ANSI.SYS?  The following  sequence must be
  1813.      issued for each key that needs to be re-mapped:
  1814.  
  1815.                             ESC [ ##;##;##;...p
  1816.  
  1817.      The (...) indicate that the sequence may be repeated as needed, but each
  1818.      sequence only re-maps one  key.   Once a  file containing  these mapping
  1819.      commands has  been created,  they can be sent to ANSI.SYS by TYPEing the
  1820.      file.  The "##" in the sequence above indicate the  ASCII codes  for the
  1821.      keys to  be mapped.   For  example, let's map F3 to the Ctrl-D key.  The
  1822.      ASCII codes for F3 are 0,61 and the ASCII code for Ctrl-D is 4.   (Note:
  1823.      the special  keys have  two codes  - the first is always 0.  These codes
  1824.      are really called extended ASCII codes.)  Therefore, the proper ANSI.SYS
  1825.      command to re-map F3 to Ctrl-D would be:
  1826.  
  1827.                             ESC [ 4;0;61p
  1828.  
  1829.      Note:
  1830.           Blanks  are   included  for  readability  only,  the  "p"  must  be
  1831.           lowercase, and the symbol  ESC  stands  for  the  escape character,
  1832.           CHR$(27).
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.                                           28
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.  
  1853.  
  1854.      Generic Tool Interface
  1855.      ----------------------
  1856.      The GT  Host Mode now supports a Generic Tool Interface.  The purpose of
  1857.      which is  to allow  utility writers  to more  intimately interface their
  1858.      programs to  GT.   In this process, GT gives up all of its memory to the
  1859.      tool program, thus allowing much greater access to  memory for  the tool
  1860.      program.    The  GTI  will  be  based  upon  the  DOS  EXEC  function as
  1861.      implemented in the C  library function  "exec...".   This means  that GT
  1862.      will be completely overlaid by the tool program and to return to GT, the
  1863.      tool program must invoke GT in the same manner it was invoked.   Here is
  1864.      the complete  interface description,  the nomenclature  is that of the C
  1865.      manual, since this is expected to be of use to C programmers only.
  1866.  
  1867.           arg0 .... Name of child program (full pathname).
  1868.           arg1 .... "-exr", indicates remote operations.
  1869.                     "-exl", indicates local operations.
  1870.           arg2 .... Name  of  parent  program  (full  pathname,   needed  for
  1871.                     return).
  1872.           arg3 .... COM port number.
  1873.           arg4 .... Baud rate.
  1874.           arg5 .... Parity.
  1875.           arg6 .... Databits.
  1876.           arg7 .... Stopbits.
  1877.           arg8 .... Flags (for use by GT only).
  1878.           arg9 .... Registration key ("-nokey" is unregistered).
  1879.  
  1880.      Much of  this information is included simply to restart GT once the tool
  1881.      program is finished with its work.  When the tool program is prepared to
  1882.      return to  GT, it  should swap 'arg0' and 'arg2' and reinvoke GT via the
  1883.      "exec..." function.
  1884.  
  1885.      If you write a program that uses this interface you will need  to inform
  1886.      your users  that they  can invoke  the interface  thru a macro key.  The
  1887.      {@/} is the macro command that invokes the GTI in GT.  The actual coding
  1888.      of the macro key would look like this:
  1889.  
  1890.                {@/}c:\gt\gtexec.exe|
  1891.  
  1892.      Which would  invoke a  program called GTEXEC.EXE in the C:\GT directory.
  1893.      Naturally, this program had better be prepared for this invokation or it
  1894.      will not return to GT when finished!
  1895.  
  1896.      Remote Sysop Interface
  1897.      ----------------------
  1898.      This interface is totally user configurable.  At the main menu of the GT
  1899.      Host mode, the sysop can enter  one of  the numbers 1,2,3,4,5,6,7,8,9,0.
  1900.      These numbers  correspond to the macro keys Alt-F1 through Alt-F10.  For
  1901.      example, if the sysop enters a 1 then the command in Alt-F1 is executed.
  1902.      If he  enters a  0 then  the command  in Alt-F10 is executed.  If a non-
  1903.      sysop tries to enter any of these numbers the program will treat them as
  1904.      invalid  input.    This  feature  could  have many uses, but is intended
  1905.      primarily as a way to remotely execute the GTI (described above).
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.                                        29
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.      Usage of Color
  1921.      --------------
  1922.      The GT Host mode now includes color built-in to the  various prompts and
  1923.      menus.   These colors  can be  configured.   The colors  used are of two
  1924.      different sets.  The first set is composed of the colors for the "Window
  1925.      foreground  and   background",  and   the  "Phone  directory  high  lite
  1926.      foreground and background".  These colors should be  subdued, since they
  1927.      are used  for normal informational type displays.  For important command
  1928.      line and menu displays, the program will use  the colors  designated for
  1929.      "Option high lite" and "Option low lite".
  1930.  
  1931.      The user  can customize the sysop prompt with these colors, by including
  1932.      the color codes in the SYSOP.BBS file.  Here is the code scheme:
  1933.  
  1934.           %  ...... Used to kill the meaning of the next character.
  1935.           %% ...... Used to display the % character.
  1936.           $  ...... Shift the pallette to  the "Window foreground/background"
  1937.                     set.
  1938.           &  ...... Shift the pallette to the "Option high/low lite" set (the
  1939.                     default).
  1940.           [] ...... High lites whatever is between the [ and ].
  1941.           ~  ...... Kills the color.  Goes back to standard B&W image.
  1942.  
  1943.      For example:
  1944.  
  1945.           $ [SYSOP] John~ here.
  1946.  
  1947.      This would shift pallette  to  the  "Window  foreground/background" set,
  1948.      high lite the word "SYSOP" and kill the color after the name "John".
  1949.  
  1950.      Actually, this  scheme was  only intended  to add color to the SYSOP.BBS
  1951.      file and  other  built-in  menus  and  prompts,  but  some  have already
  1952.      discovered  that  these  colors  can  be  added  to  the  GTMDIR.BBS and
  1953.      GTDIR.BBS files, to add color and emphasis.
  1954.  
  1955.  
  1956.      Logon DOOR
  1957.      ----------
  1958.      In the GT POWER home directory, it is  possible to  create a  DOOR file,
  1959.      with a  special name,  that will  be executed  whenever a user logs onto
  1960.      your system.  The file is named 'GTLOGON.BAT'  and it  is constructed in
  1961.      the same manner as a normal DOOR batch file (shown above).  For example:
  1962.  
  1963.                %1 com%2
  1964.                ...the DOOR stuff here, varies with each application...
  1965.                %1 con
  1966.  
  1967.      The sequence of events goes like this after a user calls your system:
  1968.  
  1969.           1.  The GTWELCOM.BBS is displayed.
  1970.           2.  Then any BULLETx.BBS is displayed.
  1971.           3.  Then the GTBMENU.BBS is displayed.
  1972.           4.  Then the GTLOGON.BAT is executed, if available.
  1973.  
  1974.  
  1975.  
  1976.  
  1977.                                        30
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.      Logoff Batch File
  1987.      -----------------
  1988.      It is  possible to  have a  logoff batch  file.  This is not a DOOR, but
  1989.      simply a batch file that GT POWER will run, if it is available, whenever
  1990.      a user has disconnected from your system.  It may contain any normal DOS
  1991.      command or other processing as required, if enough memory is available.
  1992.  
  1993.      GT remains  in memory  while this  batch file  executes in  a normal DOS
  1994.      Shell.   It can  be useful for sysops that want to backup their files if
  1995.      they are using a RAM disk for things like the log file.
  1996.  
  1997.      Please note, this is not a DOOR, that CTTY is  not redirected,  and that
  1998.      the 'watchdog' is not enabled during the execution of this batch file.
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.  
  2023.  
  2024.  
  2025.  
  2026.  
  2027.  
  2028.  
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034.  
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.                                        31
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.  
  2052.      APPENDIX
  2053.      --------
  2054.      Here is a handy list of extended ASCII codes:
  2055.  
  2056.                    Key       Codes                 Key            Codes
  2057.                    ---       -----                 ---            -----
  2058.                    F1        0,59                  Right Arrow    0,77
  2059.                    F2        0,60                  Left Arrow     0,75
  2060.                    F3        0,61                  Up Arrow       0,72
  2061.                    F4        0,62                  Down Arrow     0,80
  2062.                    F5        0,63                  Home           0,71
  2063.                    F6        0,64                  End            0,79
  2064.                    F7        0,65                  PgUp           0,73
  2065.                    F8        0,66                  PgDn           0,81
  2066.                    F9        0,67                  Ins            0,82
  2067.                    F10       0,68                  Del            0,83
  2068.  
  2069.  
  2070.  
  2071.      Here are some sample ANSI sequences!
  2072.  
  2073.                     Escape Codes         Meaning to ANSI.SYS
  2074.                     ------------         -------------------
  2075.                     ^[[4;0;61p           F3          -> Ctrl-D
  2076.                     ^[[5;0;62p           F4          -> Ctrl-E
  2077.                     ^[[19;0;77p          Right Arrow -> Ctrl-S
  2078.                     ^[[1;0;75p           Left Arrow  -> Ctrl-A
  2079.  
  2080.      With these  kinds of mappings, almost any program should be able to run,
  2081.      if it uses the DOS handles for standard input and  output.   This should
  2082.      make the "Shell to DOS" quite useful.
  2083.  
  2084.  
  2085.  
  2086.  
  2087.  
  2088.  
  2089.  
  2090.  
  2091.  
  2092.  
  2093.  
  2094.  
  2095.  
  2096.  
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.                                        32
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.             Setting up for Power-Loss-Protected GT Host Mode Operation
  2120.  
  2121.      It  is quite easy to prepare a set of files that will allow you to bring
  2122.      GT  POWER  up into  what I should like  to  call a  Power-Loss-Protected
  2123.      Host Mode of operation.  First, however, a few concepts:
  2124.  
  2125.      Whenever power is first applied to your system, (or re-applied following
  2126.      a  blackout),  the  system will boot your DOS into memory and  that,  in
  2127.      turn, will look for two files; CONFIG.SYS and AUTOEXEC.BAT.  Finding the
  2128.      CONFIG.SYS,  the  DOS  will  tailor your environment  according  to  its
  2129.      contents  (such  as  setting  a new maximum number  of  files  and  file
  2130.      buffers).   Finding  the  AUTOEXEC.BAT  file will cause  the  system  to
  2131.      immediately execute the set of DOS instructions found therein.
  2132.  
  2133.      GT  POWER   may be  caused  to run in  an unattended   Host mode  either
  2134.      through  GT  commands entered at the keyboard (Alt-dash) or via  script.
  2135.      The GT command to do so in a GT script is simply: HOST.
  2136.  
  2137.      GT  POWER   has  a built-in 'Watchdog'  function  that causes  a  system
  2138.      reset (the equivalent of a re-boot) under the following condition: It is
  2139.      in  Host  mode  and a user has invoked the Shell  to  DOS  function  and
  2140.      Carrier Detect is lost while in the DOS Shell (door).
  2141.  
  2142.      Given the above, to set up the system for Power-Loss_Protected Host mode
  2143.      operation of GT POWER you must construct the following files:
  2144.           Your normal AUTOEXEC.BAT
  2145.           A copy of the normal AUTOEXEC.BAT called AUTOEXEC.OLD
  2146.           A new file called AUTOEXEC.GT
  2147.           A new file called HOST.BAT
  2148.           A GT script file called HOST.SCR
  2149.  
  2150.      The  first  four of these files belong in your root directory while  the
  2151.      script  file   should be  placed  in  the same directory   as  GT  POWER
  2152.      resides.   When you want to enter the Power-Loss-Protected Host mode  of
  2153.      GT POWER  you  need  only type  the single word HOST from any directory.
  2154.      The  result  will be the invoking of the HOST.BAT file which,  in  turn,
  2155.      copies the AUTOEXEC.GT file on top of your normal AUTOEXEC.BAT (so  that
  2156.      if  a  re-boot  occurs  it will get control),  it then  sets  a  default
  2157.      directory so that your private directories are not accessible to callers
  2158.      into  the system,  and  then  it  invokes  GT POWER specifying the  name
  2159.      and location of the HOST.SCR script file you created.   Thus, GT will be
  2160.      given control and placed into Host mode.   Upon normal  termination,  GT
  2161.      exits  to  DOS which returns to the unexecuted portion of  the  HOST.BAT
  2162.      file  and  continues  by doing a copy of AUTOEXEC.OLD (a  copy  of  your
  2163.      original AUTOEXEC.BAT) on top of the current one and ending.
  2164.  
  2165.      In  the event of a power failure while in Host mode,  or loss of carrier
  2166.      while  in  the DOS Shell,  the AUTOEXEC.BAT file that is in  place  will
  2167.      reset  to  the  default (safe) drive and reinvoke the Host  mode  of  GT
  2168.      POWER.
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.                                        33
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.             Sample files for Power-Loss-Protected Host Mode operation
  2186.  
  2187.      Original AUTOEXEC.BAT (and AUTOEXEC.OLD!!):
  2188.  
  2189.           Echo off
  2190.           Ver
  2191.           Prompt $p$g
  2192.           Path = C:\DOS;C:\;C:\COMM;C:\FREEWARE
  2193.           Set GTPATH=C:\COMM
  2194.  
  2195.      AUTOEXEC.GT:
  2196.  
  2197.           Echo off
  2198.           Ver
  2199.           Prompt $p$g
  2200.           Path = C:\DOS;C:\;C:\COMM;C:\FREEWARE
  2201.           Set GTPATH=C:\COMM
  2202.           D:
  2203.           CD \EMPTY
  2204.           GT1200 C:\COMM\HOST.SCR
  2205.           C:
  2206.           CD \
  2207.           COPY AUTOEXEC.OLD AUTOEXEC.BAT
  2208.  
  2209.      HOST.BAT:
  2210.  
  2211.           Echo off
  2212.           Copy C:\AUTOEXEC.GT C:\AUTOEXEC.BAT
  2213.           CLS
  2214.           D:
  2215.           CD \EMPTY
  2216.           GT1200 C:\COMM\HOST.SCR
  2217.           C:
  2218.           CD \
  2219.           COPY AUTOEXEC.OLD AUTOEXEC.BAT
  2220.           CLS
  2221.  
  2222.      HOST.SCR:
  2223.  
  2224.           HOST
  2225.  
  2226.  
  2227.      That's all there is to it.
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.                                        34
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.                    Running GT POWER under DESQview(tm)
  2252.  
  2253.  GT  POWER runs quite well as a task under the DESQview(tm) multi-tasking
  2254.  system.   There are a few things that should be kept in mind when  doing
  2255.  so, however.
  2256.  
  2257.  For example,  in order to prevent any 'bleeding' of your GT screens into
  2258.  another task,  you must set the BIOS parameter of GT to TRUE.  Note that
  2259.  the  effect  of  doing so totally eliminates any use  of  direct  screen
  2260.  writes  by GT and that it will substantially increase the time it  takes
  2261.  GT to 'open' a window.   It does not affect any other function of GT nor
  2262.  does it affect any other aspect of GT performance.
  2263.  
  2264.  Also,  you  will need to provide enough memory for GT to run while under
  2265.  DESQview(tm).   If you do not have to consider KERMIT or  ZMODEM then
  2266.  you  can  run  GT  in a partition of as  small  as  330K  of  RAM.
  2267.  Experimentation  has shown that in order to support ZMODEM and the other
  2268.  protocols  mentioned  above you will need to set the partition  size  to
  2269.  440K.
  2270.  
  2271.  GT,  as  it requires rapid access to the serial port you are  using  for
  2272.  communications  must  be  the first task loaded in DESQview(tm).  And, a
  2273.  performance option of DESQview(tm) (set by invoking the SETUP program)
  2274.  must be set showing the existence of High Speed Communications.   Other
  2275.  options that need to be set include the fact that GT is NOT SWAPPABLE to
  2276.  disk  and  time  slices somewhere between 3 and 6 ticks  in  length  per
  2277.  partition.
  2278.  
  2279.  (tm) DESQview is the trademark of QuarterDeck Office Systems.
  2280.  
  2281.  
  2282.                                    - THE END -
  2283.  
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.                                        35
  2308.  
  2309.  
  2310.  
  2311.