home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / k95 / hostuser.txt < prev    next >
Text File  |  2020-01-01  |  20KB  |  467 lines

  1. KERMIT 95 HOST MODE USER'S GUIDE
  2.  
  3.   ---   PREPUBLICATION DRAFT   ---
  4.  
  5.   Copyright (C) 1996, 1999, Frank da Cruz and Christine M. Gianone.
  6.   All rights reserved.
  7.  
  8. Creation: February 8, 1996.
  9. Most recent update: Thu Aug  5 11:02:06 1999
  10.  
  11. Applies to:
  12.   Kermit 95 1.1.3 or later,
  13.   Host Mode script version 1.00,
  14.   Microsoft Windows 95, 98, NT, or 2000 or IBM OS/2.
  15.  
  16. CONTENTS
  17.  
  18.   1. GETTING CONNECTED
  19.   2. LOGGING IN
  20.   3. THE HOST MENU
  21.   4. DIRECTORIES
  22.   5. COMMANDS
  23.   6. CD PRIVILEGE
  24.   7. DOS PRIVILEGE
  25.   8. POSTSCRIPT: WHY CAN'T I HAVE AN INTERACTIVE REMOTE DOS SESSION?
  26.  
  27. INTRODUCTION
  28.  
  29. Kermit 95 host mode is like a mini BBS running on a Windows 95 or Windows NT
  30. system that you can connect to using your communication software so you can:
  31.  
  32.  . Upload and download files using Kermit, ZMODEM, or other protocols
  33.  . Receive messages from and leave messages for the PC owner
  34.  . Execute certain types of DOS commands
  35.  
  36. Real Kermit software is recommended: Kermit 95, MS-DOS Kermit, VMS C-Kermit,
  37. UNIX C-Kermit, etc:
  38.  
  39.  . VT100 or ANSI emulation is required
  40.  . Kermit file transfer protocol is recommended
  41.  . Kermit server mode is required when Kermit protocol is selected
  42.  . "set terminal apc on" is recommended for automatic up- and downloads
  43.  . "set server display on" is recommended so you can monitor uploads
  44.  . "set term byte 8" and "set term char cp437" recommended
  45.  . A scrollback feature is needed on certain occasions
  46.  
  47. The Kermit 95 host is a PC running Windows 95 or NT and Kermit 95 in "host
  48. mode".  A username and password must have been set up for you in advance by
  49. the owner of the PC (the "proprietor") or else the proprietor must have
  50. configured the Kermit 95 host to allow anonymous logins, in which case you
  51. can use "guest" as the username, and supply anything at all as your
  52. password.
  53.  
  54. 1. GETTING CONNECTED
  55.  
  56. You can make either a dialup or a Telnet connection to a Kermit 95 host,
  57. depending on how the proprietor set it up.  To make a dialup connection,
  58. simply dial the number given to you by the proprietor and then enter your
  59. terminal emulator, for example (in Kermit-95, MS-DOS Kermit, or C-Kermit):
  60.  
  61.   set terminal apc on
  62.   dial 5551234
  63.   connect
  64.  
  65. NOTE: "apc" is the VTxxx Application Program Command escape sequence which
  66. is recognized by Kermit 95, MS-DOS Kermit, and C-Kermit.  It is this feature
  67. that allows host mode to initiate uploads and downloads automatically
  68. without you having to "escape back" and give commands to your local Kermit
  69. program.  Read about APC in the KERMIT.UPD or CKERMIT.UPD file that comes
  70. with your Kermit software.
  71.  
  72. As with all dialup connections, make sure you have an adequate method of
  73. flow control (preferable RTS/CTS hardware flow control) enabled, or else
  74. characters are very likely to be lost in both directions.
  75.  
  76. To make a Telnet connection, tell your Kermit client software to "telnet
  77. <hostname> <socket-number>".  The <hostname> is the TCP/IP hostname of the
  78. proprietor's PC, and the <socket-number> is a number, usually 3000, given to
  79. you by the proprietor.  So, assuming that host mode is running on a PC whose
  80. IP hostname is pc.oofa.com, and it is listening for a connection on TCP port
  81. 3000, you would connect to by giving the following commands to your own Kermit
  82. software:
  83.  
  84.   set terminal apc on
  85.   telnet pc.oofa.com 3000
  86.  
  87. 2. LOGGING IN
  88.  
  89. When you first connect to Kermit 95 host mode, the screen contains:
  90.  
  91.   K-95 Login
  92.  
  93.   Username: _
  94.  
  95. Type your username, using the backspace key for editing if necessary, and then
  96. press the Enter or Return key.  Then the Password: prompt appears.  As you
  97. type your password, each character is echoed as an asterisk (*).
  98.  
  99.   NOTE: On a Telnet connection, if characters are echoing twice on your
  100.   screen, return to your terminal program and instruct it to disable local
  101.   echoing.  (In most cases this should not be necessary.)
  102.  
  103. If the username / password combination is not valid, the message "Access
  104. denied" is displayed and you get two more chances to log in.  If you fail to
  105. log in successfully after three tries, the connection is closed and hung up.
  106.  
  107. 3. THE HOST MENU
  108.  
  109. After a successful login, you might see a greeting or news message from the PC
  110. owner.  After reading these texts, you are prompted to "Press any key to
  111. continue" and after you do so, you are placed in your personal directory and
  112. the main menu appears:
  113.  
  114.                    Welcome to K-95 Host Mode
  115.  
  116.                    Current directory: D:/K95/USERS/OLGA
  117.                    Protocol: Kermit, Transfer mode: binary
  118.  
  119.                    Choices:
  120.  
  121.                     1 - Change protocol
  122.                     2 - Change transfer mode
  123.                     3 - Change directory
  124.                     4 - List files
  125.                     5 - Download files
  126.                     6 - Upload files
  127.                     7 - View a file
  128.                     8 - Delete files
  129.                     9 - Read messages
  130.                    10 - Leave a message
  131.                    11 - Change password
  132.                    12 - Help
  133.                    13 - Logout
  134.                (*) 14 - Execute a DOS command
  135.  
  136.                    Enter choice: _
  137.  
  138.                    Last command: OK
  139.  
  140. (*) Item 14 appears only if your user ID has been equipped with the
  141.     necessary privilege.
  142.  
  143. The "Last command" line tells whether your most recent command succeeded
  144. or failed.
  145.  
  146. If anonymous logins are permitted, guest users are placed in the PUBLIC
  147. directory.  Guest logins do not have a personal directory.
  148.  
  149. 4. DIRECTORIES
  150.  
  151. Each user has access to three directories:
  152.  
  153.  1. Your own personal directory.  This directory has the same name as your
  154.     username.  You may upload to and download from this directory.  Other
  155.     host-mode users do not have access to your personal directory.
  156.     (Anonymous GUEST logins have no personal directory.)
  157.  
  158.  2. The PUBLIC directory.  All host-mode users may download files from this
  159.     directory, but may not upload to it or modify it in any other way.
  160.     This directory is used by the PC owner for distributing files to users.
  161.  
  162.  3. The INCOMING directory.  All host-mode users may upload files to this
  163.     directory.  Thus, different users can share files through this directory
  164.     without intervention from the PC owner.
  165.  
  166. In addition, privileged users can also access other directories; see the
  167. section on CD PRIVILEGES below.
  168.  
  169. 5. COMMANDS
  170.  
  171. The menu choices are as follows.  To choose a menu item, enter its number and
  172. then press the Enter or Return key.
  173.  
  174. 1 - Change protocol
  175.  
  176.     The current file transfer protocol is shown on the main screen, just
  177.     above the menu.  This menu option lets you change it.  The choices are
  178.     Kermit, ZMODEM, YMODEM, YMODEM-G, and XMODEM.  Make sure your client
  179.     software is set up to use the same protocol.
  180.  
  181. 2 - Change transfer mode    
  182.  
  183.     The current default transfer mode, text or binary, is shown above the
  184.     menu.  Use this option to change it.
  185.  
  186. 3 - Change directory
  187.  
  188.     Displays a menu with the choices "Your own home directory", "The PUBLIC
  189.     directory", and "The INCOMING directory", and allows you to choose one,
  190.     or to return to the main menu without changing anything.
  191.  
  192. 4 - List files
  193.  
  194.     Displays a listing of the current directory on your screen.  If the
  195.     listing is longer than your screen, naturally, it scrolls off the top.
  196.     The presumption is that your client software has a scrollback feature.
  197.     At the end of the file, your are instructed to "Press any key to
  198.     continue", at which point the file disappears and the main menu comes
  199.     back (but even after this happens you should still be able to scroll
  200.     back to the directory listing).
  201.  
  202. 5 - Download a file
  203.   
  204.     Prompts you for a filename.  If the file exists in the current PC host
  205.     directory, it is sent to you in the current transfer mode using the
  206.     current protocol.  The transfer happens automatically if the protocol is
  207.     Kermit and your client program supports Kermit's APC mechanism and has
  208.     it enabled, OR if your client program supports Kermit or ZMODEM
  209.     automatic downloading (as Kermit 95 does).  Otherwise you will see a
  210.     message instructing you to start your end of the transfer, which you
  211.     should do using whatever method is required by your terminal program.
  212.  
  213. 2 - Upload a file
  214.   
  215.     Works only if the current directory is your own private directory or the
  216.     INCOMING directory.  Prompts you for a filename.  If the file exists and
  217.     is accessible on your computer, it is sent using the current protocol
  218.     and whatever transfer mode, text or binary, your client software is
  219.     set up for.
  220.  
  221.     The transfer happens automatically if the protocol is Kermit and your
  222.     client program supports Kermit's APC mechanism and has it enabled AND if
  223.     your client program can enter Kermit server mode.  Otherwise you will
  224.     see a message instructing you to start your end of the transfer.  If the
  225.     file is sent containing a pathname, the pathname is stripped to ensure
  226.     that the file is stored in the host PC's current directory and not
  227.     somewhere else.
  228.  
  229. 7 - View a file
  230.  
  231.     Prompts you for a filename.  If the file exists in the current directory
  232.     and is readable, it is displayed on your screen in the same manner as a
  233.     directory listing.  Use scrollback, if necessary, to view any portions
  234.     that scrolled off the screen.
  235.  
  236. 8 - Delete a file
  237.  
  238.     Deletes a file on the Kermit 95 host PC.  This is permitted only in
  239.     your own private directory.  Prompts you for the filename.
  240.     
  241. 9 - Read messages
  242.  
  243.     If you have one or more messages from the PC owner, the main menu says
  244.     "Message(s) waiting...".  Use this menu option to read them.  After
  245.     reading, you can keep, delete, move, or download the messages.
  246.  
  247. 10 - Leave a message
  248.  
  249.     Leave a message for the proprietor (sorry, there is presently no way to
  250.     send a message to another user).  The message is automatically
  251.     timestamped and your username is shown as the sender.  You are prompted
  252.     for a subject.  Then may type zero or more lines of text as the message
  253.     body.  To include a blank line, for example between paragraphs, type at
  254.     least one space.  When you are finished, enter a period (.) alone on a
  255.     line.  At that point, you can choose whether to send or cancel the
  256.     message.  If you choose to send it, it is sent to the proprietor's
  257.     message file and a message appears immediately on the proprietor's screen
  258.     announcing that you have sent a message, and listing its subject.  So
  259.     sending a message with only a subject and no body is a handy way to get
  260.     the proprietor's attention (if s/he is sitting at the host PC).
  261.  
  262. 11 - Change password
  263.  
  264.     Use this option to change your password.  You are prompted for your old
  265.     password as a safety precaution.  If you enter it correctly, then you
  266.     are prompted for the new password, and then you are asked to enter it
  267.     again to guard against typing errors.
  268.  
  269. 12 - Help
  270.  
  271.     Displays a brief help text.
  272.  
  273. 13 - Logout
  274.  
  275.     Logs you out from host mode and hangs up the connection.
  276.  
  277. 14 - Execute a DOS command
  278.  
  279.     This option is available only to users who have been granted this
  280.     privilege by the proprietor, as it allows more or less unrestricted
  281.     access to the proprietor's PC.  If you do not have DOS privilege, this
  282.     item does not appear on the menu.  See section on PRIVILEGES below.
  283.  
  284. In any dialog, as when you are being prompted for a menu item or a filename,
  285. the following special characters can be used for editing and control:
  286.  
  287.     Backspace - Erase the rightmost character
  288.     Delete    - Erase the rightmost character
  289.     Ctrl-H    - Erase the rightmost character
  290.     Ctrl-U    - Erase all the characters typed so far, back to the prompt
  291.     Ctrl-C    - Return immediately to the main menu
  292.     Ctrl-L    - Refresh the screen
  293.  
  294. Ctrl-C cannot be used during the login dialog.
  295.  
  296. 6. CD PRIVILEGE
  297.  
  298. If the proprietor has granted you "CD Privilege", this allows you to change
  299. your current directory (CD) to any directory on the PC and therefore to
  300. upload and download files to/from any directory, to delete files in any
  301. directory, and to view the contents of any directory.  If you have CD
  302. Privilege, you will see an item 4 in the Change Directory menu:
  303.  
  304.       Choices:
  305.  
  306.       1 - My home directory (read/write only by me)
  307.       2 - The PUBLIC directory (everybody can read it)
  308.       3 - The INCOMING directory (everybody can write)
  309.       4 - A specific directory
  310.       5 - Return to main menu
  311.  
  312. If you don't have CD Privilege, item 4 does not appear and you are
  313. restricted to your personal directory plus the PUBLIC and INCOMING
  314. directories.
  315.  
  316. 7. DOS PRIVILEGE
  317.  
  318. DOS privilege allows you to execute DOS commands.  DOS privilege also
  319. implicitly includes CD privilege, since you can refer to any disk or
  320. directory in a DOS command.  If you have DOS privilege, item 14 - "Execute a
  321. DOS command" appears in the main menu.
  322.  
  323. This menu choice does not give you a DOS prompt.  Rather, it lets you send a
  324. command to the K95 host to be passed to DOS for execution in the context of
  325. your current directory.  The K95 host does not and can not enforce any kinds
  326. of restrictions or safety measures on these commands.
  327.  
  328. You should only enter DOS commands that:
  329.  
  330.  1. Require absolutely no input from the PC keyboard or mouse.
  331.  
  332.  2. Write their output in text mode on the DOS screen and then
  333.     exit immediately.
  334.  
  335. If you enter a DOS command that might possibly require input from the PC
  336. keyboard (example: a COPY command might result in "Overwrite existing file
  337. (Yes/No/All)?") or a command that starts a GUI program, or a command that
  338. starts an interactive program such as a text editor, your session will
  339. become stuck and you will have to hang up.  This is a limitation of DOS;
  340. input cannot be redirected reliably, and output can be redirected only if it
  341. is the "standard output" of a text-mode DOS program or command.
  342.  
  343. Your DOS command may be entered in the normal way without the output
  344. redirection symbol (">"), in which case the command's output is displayed on
  345. your screen; if the output scrolls off the top of your screen, use the
  346. scrollback feature of your terminal program to view the earlier material.
  347.  
  348. If your DOS command includes the ">" symbol to redirect the command's output
  349. to a file, then you can use the Download or View options from the main menu
  350. to download or view the resulting file afterwards.
  351.  
  352. Examples of unsafe DOS commands (not a complete list):
  353.  
  354.   time       (because it prompts for a new time)
  355.   date       (because it prompts for a new date)
  356.   copy       (because it might prompt for permission to overwrite a file)
  357.   delete     (because it might prompt "Are you sure (Y/N)?")
  358.   dir /p     (because it prompts "Press any key to continue")
  359.   more       (because it prompts "-- More --")
  360.   move       (because it might prompt for permission to overwrite a file)
  361.   deltree    (because it prompts for permission to proceed)
  362.   chkdsk     (because it might prompt for permission to fix a disk)
  363.   qbasic     (because it is an interactive program)
  364.   edit       (because it is an interactive program)
  365.   help       (because it is an interactive program)
  366.   notepad    (because it is an interactive program and a GUI program)
  367.  
  368. Plus any command at all that might reference a disk that is not ready,
  369. resulting in the familiar "Abort, Retry, Fail?" prompt.
  370.  
  371. Examples of safe DOS commands (assuming they do not reference a disk that
  372. is not ready, and not a complete list, and with no guarantees):
  373.  
  374.   echo
  375.   fc
  376.   find  
  377.   mem
  378.   rename
  379.   dir        (without /P, but possibly with other switches)
  380.   mkdir
  381.   rmdir
  382.   set
  383.   copy /Y    (suppresses prompt)
  384.   move /Y    (suppresses prompt)
  385.   deltree /Y (suppresses prompt)
  386.   start      (without /W switch)
  387.   xxx /?     (prints help text for DOS command xxx)
  388.  
  389. Plus any command that starts a DOS text-mode program that meets the "safe"
  390. requirements given above.  For example, many of the GNU UNIX utilities like
  391. grep, wc, etc, that have been ported to Windows 95 and NT, or (in most cases)
  392. the Microsoft "nmake" or "cl" programs that are used for compiling C
  393. programs, and probably other compilers too, at least when invoked with the
  394. appropriate command-line options (example: the Microsoft Help compiler will
  395. run without requiring any interaction when given the /E and /C switches).
  396.  
  397. NOTES:
  398.  
  399.  1. The "Last command" status for DOS commands will not necessarily be
  400.     correct, since DOS does not accurately report the status back to the
  401.     Kermit 95 host.
  402.  
  403.  2. If you make a mistake in a DOS command, the error message is not
  404.     displayed for you.  Instead, it comes out on the host PC's screen.
  405.     That's another DOS feature.  Similarly if a command is entered correctly,
  406.     but fails; for example, "rmdir oofa" will fail if the "oofa" directory is
  407.     not empty, but you won't see the error message.
  408.  
  409.  3. CD, when given as a DOS command with arguments, has no effect.  To change
  410.     disks or directories, use the "Change directory" item in the main menu.
  411.  
  412.  
  413. 8. POSTSCRIPT: WHY CAN'T I HAVE AN INTERACTIVE REMOTE DOS SESSION?
  414.  
  415. Unlike multiuser operating systems such as UNIX and VMS, Windows and DOS
  416. were not designed to be used remotely.  The DOS/Windows user is expected to
  417. be sitting at the PC, looking at the PC's monitor, and controlling the PC
  418. physically with the keyboard, mouse, and possibly other input devices.
  419.  
  420. Many DOS commands REQUIRE input from the PC's physical keyboard or mouse,
  421. and the input source can not be redirected.  Even if they could be,
  422. PC-specific keys or combinations that are required in certain situations,
  423. such as F-keys, Alt-key combinations, arrow and editing keys, etc, can not
  424. be represented by ordinary characters such as sent by a terminal or Telnet
  425. program.
  426.  
  427. In the other direction, output is not always the simple writing of text to
  428. "standard output", but often involves manipulation of internal video buffers,
  429. calls to the graphical shell, or otherwise non-redirectable writes to the PC
  430. console (screen, speaker, etc).  All of this is in contrast to text-based
  431. operating systems like UNIX or VMS, which are designed from the beginning to
  432. allow sessions to come from anywhere and to be redirected in any desired
  433. manner.
  434.  
  435. Gaining the commonly-desired sort of remote access to a Windows-based PC
  436. ("I want to use my work PC from my home PC, just as if I was at work")
  437. requires not a Telnet server or a "host mode", but rather an elaborate
  438. special-purpose Windows-specific "remote access" product that traps key
  439. events, mouse actions, video-buffer manipulations, etc, and which necessarily
  440. restricts access to only Windows-based clients, or clients that can emulate
  441. the Windows environment.  Remote access products for Windows 95 and NT cost
  442. in $150-200 range, require lots of disk space, and you need one (generally
  443. the SAME one) for each end.  Furthermore the host PC can only support one
  444. remote access session at a time, so if you want multiple clients to access
  445. your PC-based services simultaneously, you'll need multiple host PCs.
  446. Examples of remote access products include LapLink for Windows 95,
  447. pcAnywhere-32, and Remotely Possible/32.
  448.  
  449. Kermit 95's host mode grants a more limited type of access, but to a much
  450. wider variety of clients -- any computer that can run a simple VT100 or ANSI
  451. terminal emulation program: a DOS PC, a UNIX workstation, a Macintosh, an
  452. Apple II, a central computer running UNIX, VMS, VOS, or AOS/VS, and so on,
  453. and multiple host sessions can be active simultaneously on a single PC.
  454. Therefore Kermit 95's host mode is a good approach for PC owners who need to
  455. provide remote access to a diverse assortment of clients with a minimum of
  456. overhead, for the primary purpose of downloading and/or uploading of files
  457. within a secure framework, rather than for letting remote users run
  458. Windows-based applications.
  459.  
  460. If your needs exceed Kermit 95's range of services, you should investigate
  461. either a remote access product, which makes a "Windows clone" of your system
  462. for one client at a time, or a full-fledged BBS system that provides a wider
  463. range of services, usually restricted to text mode, to a potentially large
  464. number of simultaneous users, generally at rather high cost.
  465.  
  466. (End of HOSTUSER.TXT)
  467.