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

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