Home » Archimedes archive » Acorn User » AU 1995-05.adf » !Internet_StarterPak » !TCPIP/TCPIP_Doc/Notes/Banner

!TCPIP/TCPIP_Doc/Notes/Banner

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1995-05.adf » !Internet_StarterPak
Filename: !TCPIP/TCPIP_Doc/Notes/Banner
Read OK:
File size: 088F bytes
Load address: 0000
Exec address: 0000
File contents
Banner Files
============

The Directory "!TCPIPUser.Banner" contains startup banners for Telnet
and FTP logins as follows:

    Banner.FTPanon  Message to anon FTP users
    Banner.FTPpriv  Message to priv FTP users
    Banner.TelnetAt Message to Telnet User when attended
    Banner.TelnetUn Message to Telnet Users when unattended
    
All of these files recognise the string "<localtime>" on a line of its
own, optionally preceded by other text.

For example:

     <localtime>

Would result in the string:

     Local time is Tue Jun 21 13:00:49 1994.

^^^^^ 5 spaces reproduced

being sent to the remote user.

Care should be taken to ensure that such macro expansions will fit on
the remainder of the line.

For telnet message files, line length should be kept to around 76 characters.
For FTP message files, line length should be kept to around 72 characters to allow
room for each line to be prefixed with "230-".

For FTP message files, you may wish to prefix each line with a couple of
spaces  so the message appears as in the example below.

As these text file are assumed to have been created in !Edit, or !Zap,
or other similar text editor with '\n' as end of line, the end of line
characters are changed to "\r\n".


Example of anon FTP messge file
-------------------------------


                  Computech's anonymous FTP Server
                  ================================

   Acorn Archimedes running !TCPIP (Arc KA9Q) V2.02 (FTP Server)

   You have a reached a private FTP site connected via a 28.8K modem.

   <localtime>

   If there is anything here, you are welcome to it. Any small uploads
   welcome, please upload to "incoming".


This is sent as follows:

230-
230-                  Computech's anonymous FTP Server
230-                  ================================
230-
230-   Acorn Archimedes running !TCPIP (Arc KA9Q) V2.00 (FTP Server)
230-
230-   You have a reached a private FTP site connected via a 14.4K modem.
230-
230-   Local time is Tue Jun 21 13:00:49 1994.
230-
230-   If there is anything here, you are welcome to it. Any small uploads
230-   welcome, please upload to "incoming".
230-
230 Logged in as anonymous, restrictions apply
00000000  42 61 6e 6e 65 72 20 46  69 6c 65 73 0a 3d 3d 3d  |Banner Files.===|
00000010  3d 3d 3d 3d 3d 3d 3d 3d  3d 0a 0a 54 68 65 20 44  |=========..The D|
00000020  69 72 65 63 74 6f 72 79  20 22 21 54 43 50 49 50  |irectory "!TCPIP|
00000030  55 73 65 72 2e 42 61 6e  6e 65 72 22 20 63 6f 6e  |User.Banner" con|
00000040  74 61 69 6e 73 20 73 74  61 72 74 75 70 20 62 61  |tains startup ba|
00000050  6e 6e 65 72 73 20 66 6f  72 20 54 65 6c 6e 65 74  |nners for Telnet|
00000060  0a 61 6e 64 20 46 54 50  20 6c 6f 67 69 6e 73 20  |.and FTP logins |
00000070  61 73 20 66 6f 6c 6c 6f  77 73 3a 0a 0a 20 20 20  |as follows:..   |
00000080  20 42 61 6e 6e 65 72 2e  46 54 50 61 6e 6f 6e 20  | Banner.FTPanon |
00000090  20 4d 65 73 73 61 67 65  20 74 6f 20 61 6e 6f 6e  | Message to anon|
000000a0  20 46 54 50 20 75 73 65  72 73 0a 20 20 20 20 42  | FTP users.    B|
000000b0  61 6e 6e 65 72 2e 46 54  50 70 72 69 76 20 20 4d  |anner.FTPpriv  M|
000000c0  65 73 73 61 67 65 20 74  6f 20 70 72 69 76 20 46  |essage to priv F|
000000d0  54 50 20 75 73 65 72 73  0a 20 20 20 20 42 61 6e  |TP users.    Ban|
000000e0  6e 65 72 2e 54 65 6c 6e  65 74 41 74 20 4d 65 73  |ner.TelnetAt Mes|
000000f0  73 61 67 65 20 74 6f 20  54 65 6c 6e 65 74 20 55  |sage to Telnet U|
00000100  73 65 72 20 77 68 65 6e  20 61 74 74 65 6e 64 65  |ser when attende|
00000110  64 0a 20 20 20 20 42 61  6e 6e 65 72 2e 54 65 6c  |d.    Banner.Tel|
00000120  6e 65 74 55 6e 20 4d 65  73 73 61 67 65 20 74 6f  |netUn Message to|
00000130  20 54 65 6c 6e 65 74 20  55 73 65 72 73 20 77 68  | Telnet Users wh|
00000140  65 6e 20 75 6e 61 74 74  65 6e 64 65 64 0a 20 20  |en unattended.  |
00000150  20 20 0a 41 6c 6c 20 6f  66 20 74 68 65 73 65 20  |  .All of these |
00000160  66 69 6c 65 73 20 72 65  63 6f 67 6e 69 73 65 20  |files recognise |
00000170  74 68 65 20 73 74 72 69  6e 67 20 22 3c 6c 6f 63  |the string "<loc|
00000180  61 6c 74 69 6d 65 3e 22  20 6f 6e 20 61 20 6c 69  |altime>" on a li|
00000190  6e 65 20 6f 66 20 69 74  73 0a 6f 77 6e 2c 20 6f  |ne of its.own, o|
000001a0  70 74 69 6f 6e 61 6c 6c  79 20 70 72 65 63 65 64  |ptionally preced|
000001b0  65 64 20 62 79 20 6f 74  68 65 72 20 74 65 78 74  |ed by other text|
000001c0  2e 0a 0a 46 6f 72 20 65  78 61 6d 70 6c 65 3a 0a  |...For example:.|
000001d0  0a 20 20 20 20 20 3c 6c  6f 63 61 6c 74 69 6d 65  |.     <localtime|
000001e0  3e 0a 0a 57 6f 75 6c 64  20 72 65 73 75 6c 74 20  |>..Would result |
000001f0  69 6e 20 74 68 65 20 73  74 72 69 6e 67 3a 0a 0a  |in the string:..|
00000200  20 20 20 20 20 4c 6f 63  61 6c 20 74 69 6d 65 20  |     Local time |
00000210  69 73 20 54 75 65 20 4a  75 6e 20 32 31 20 31 33  |is Tue Jun 21 13|
00000220  3a 30 30 3a 34 39 20 31  39 39 34 2e 0a 0a 5e 5e  |:00:49 1994...^^|
00000230  5e 5e 5e 20 35 20 73 70  61 63 65 73 20 72 65 70  |^^^ 5 spaces rep|
00000240  72 6f 64 75 63 65 64 0a  0a 62 65 69 6e 67 20 73  |roduced..being s|
00000250  65 6e 74 20 74 6f 20 74  68 65 20 72 65 6d 6f 74  |ent to the remot|
00000260  65 20 75 73 65 72 2e 0a  0a 43 61 72 65 20 73 68  |e user...Care sh|
00000270  6f 75 6c 64 20 62 65 20  74 61 6b 65 6e 20 74 6f  |ould be taken to|
00000280  20 65 6e 73 75 72 65 20  74 68 61 74 20 73 75 63  | ensure that suc|
00000290  68 20 6d 61 63 72 6f 20  65 78 70 61 6e 73 69 6f  |h macro expansio|
000002a0  6e 73 20 77 69 6c 6c 20  66 69 74 20 6f 6e 0a 74  |ns will fit on.t|
000002b0  68 65 20 72 65 6d 61 69  6e 64 65 72 20 6f 66 20  |he remainder of |
000002c0  74 68 65 20 6c 69 6e 65  2e 0a 0a 46 6f 72 20 74  |the line...For t|
000002d0  65 6c 6e 65 74 20 6d 65  73 73 61 67 65 20 66 69  |elnet message fi|
000002e0  6c 65 73 2c 20 6c 69 6e  65 20 6c 65 6e 67 74 68  |les, line length|
000002f0  20 73 68 6f 75 6c 64 20  62 65 20 6b 65 70 74 20  | should be kept |
00000300  74 6f 20 61 72 6f 75 6e  64 20 37 36 20 63 68 61  |to around 76 cha|
00000310  72 61 63 74 65 72 73 2e  0a 46 6f 72 20 46 54 50  |racters..For FTP|
00000320  20 6d 65 73 73 61 67 65  20 66 69 6c 65 73 2c 20  | message files, |
00000330  6c 69 6e 65 20 6c 65 6e  67 74 68 20 73 68 6f 75  |line length shou|
00000340  6c 64 20 62 65 20 6b 65  70 74 20 74 6f 20 61 72  |ld be kept to ar|
00000350  6f 75 6e 64 20 37 32 20  63 68 61 72 61 63 74 65  |ound 72 characte|
00000360  72 73 20 74 6f 20 61 6c  6c 6f 77 0a 72 6f 6f 6d  |rs to allow.room|
00000370  20 66 6f 72 20 65 61 63  68 20 6c 69 6e 65 20 74  | for each line t|
00000380  6f 20 62 65 20 70 72 65  66 69 78 65 64 20 77 69  |o be prefixed wi|
00000390  74 68 20 22 32 33 30 2d  22 2e 0a 0a 46 6f 72 20  |th "230-"...For |
000003a0  46 54 50 20 6d 65 73 73  61 67 65 20 66 69 6c 65  |FTP message file|
000003b0  73 2c 20 79 6f 75 20 6d  61 79 20 77 69 73 68 20  |s, you may wish |
000003c0  74 6f 20 70 72 65 66 69  78 20 65 61 63 68 20 6c  |to prefix each l|
000003d0  69 6e 65 20 77 69 74 68  20 61 20 63 6f 75 70 6c  |ine with a coupl|
000003e0  65 20 6f 66 0a 73 70 61  63 65 73 20 20 73 6f 20  |e of.spaces  so |
000003f0  74 68 65 20 6d 65 73 73  61 67 65 20 61 70 70 65  |the message appe|
00000400  61 72 73 20 61 73 20 69  6e 20 74 68 65 20 65 78  |ars as in the ex|
00000410  61 6d 70 6c 65 20 62 65  6c 6f 77 2e 0a 0a 41 73  |ample below...As|
00000420  20 74 68 65 73 65 20 74  65 78 74 20 66 69 6c 65  | these text file|
00000430  20 61 72 65 20 61 73 73  75 6d 65 64 20 74 6f 20  | are assumed to |
00000440  68 61 76 65 20 62 65 65  6e 20 63 72 65 61 74 65  |have been create|
00000450  64 20 69 6e 20 21 45 64  69 74 2c 20 6f 72 20 21  |d in !Edit, or !|
00000460  5a 61 70 2c 0a 6f 72 20  6f 74 68 65 72 20 73 69  |Zap,.or other si|
00000470  6d 69 6c 61 72 20 74 65  78 74 20 65 64 69 74 6f  |milar text edito|
00000480  72 20 77 69 74 68 20 27  5c 6e 27 20 61 73 20 65  |r with '\n' as e|
00000490  6e 64 20 6f 66 20 6c 69  6e 65 2c 20 74 68 65 20  |nd of line, the |
000004a0  65 6e 64 20 6f 66 20 6c  69 6e 65 0a 63 68 61 72  |end of line.char|
000004b0  61 63 74 65 72 73 20 61  72 65 20 63 68 61 6e 67  |acters are chang|
000004c0  65 64 20 74 6f 20 22 5c  72 5c 6e 22 2e 0a 0a 0a  |ed to "\r\n"....|
000004d0  45 78 61 6d 70 6c 65 20  6f 66 20 61 6e 6f 6e 20  |Example of anon |
000004e0  46 54 50 20 6d 65 73 73  67 65 20 66 69 6c 65 0a  |FTP messge file.|
000004f0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000500  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 0a  |---------------.|
00000510  0a 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |..              |
00000520  20 20 20 20 43 6f 6d 70  75 74 65 63 68 27 73 20  |    Computech's |
00000530  61 6e 6f 6e 79 6d 6f 75  73 20 46 54 50 20 53 65  |anonymous FTP Se|
00000540  72 76 65 72 0a 20 20 20  20 20 20 20 20 20 20 20  |rver.           |
00000550  20 20 20 20 20 20 20 3d  3d 3d 3d 3d 3d 3d 3d 3d  |       =========|
00000560  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00000570  3d 3d 3d 3d 3d 3d 3d 0a  0a 20 20 20 41 63 6f 72  |=======..   Acor|
00000580  6e 20 41 72 63 68 69 6d  65 64 65 73 20 72 75 6e  |n Archimedes run|
00000590  6e 69 6e 67 20 21 54 43  50 49 50 20 28 41 72 63  |ning !TCPIP (Arc|
000005a0  20 4b 41 39 51 29 20 56  32 2e 30 32 20 28 46 54  | KA9Q) V2.02 (FT|
000005b0  50 20 53 65 72 76 65 72  29 0a 0a 20 20 20 59 6f  |P Server)..   Yo|
000005c0  75 20 68 61 76 65 20 61  20 72 65 61 63 68 65 64  |u have a reached|
000005d0  20 61 20 70 72 69 76 61  74 65 20 46 54 50 20 73  | a private FTP s|
000005e0  69 74 65 20 63 6f 6e 6e  65 63 74 65 64 20 76 69  |ite connected vi|
000005f0  61 20 61 20 32 38 2e 38  4b 20 6d 6f 64 65 6d 2e  |a a 28.8K modem.|
00000600  0a 0a 20 20 20 3c 6c 6f  63 61 6c 74 69 6d 65 3e  |..   <localtime>|
00000610  0a 0a 20 20 20 49 66 20  74 68 65 72 65 20 69 73  |..   If there is|
00000620  20 61 6e 79 74 68 69 6e  67 20 68 65 72 65 2c 20  | anything here, |
00000630  79 6f 75 20 61 72 65 20  77 65 6c 63 6f 6d 65 20  |you are welcome |
00000640  74 6f 20 69 74 2e 20 41  6e 79 20 73 6d 61 6c 6c  |to it. Any small|
00000650  20 75 70 6c 6f 61 64 73  0a 20 20 20 77 65 6c 63  | uploads.   welc|
00000660  6f 6d 65 2c 20 70 6c 65  61 73 65 20 75 70 6c 6f  |ome, please uplo|
00000670  61 64 20 74 6f 20 22 69  6e 63 6f 6d 69 6e 67 22  |ad to "incoming"|
00000680  2e 0a 0a 0a 54 68 69 73  20 69 73 20 73 65 6e 74  |....This is sent|
00000690  20 61 73 20 66 6f 6c 6c  6f 77 73 3a 0a 0a 32 33  | as follows:..23|
000006a0  30 2d 0a 32 33 30 2d 20  20 20 20 20 20 20 20 20  |0-.230-         |
000006b0  20 20 20 20 20 20 20 20  20 43 6f 6d 70 75 74 65  |         Compute|
000006c0  63 68 27 73 20 61 6e 6f  6e 79 6d 6f 75 73 20 46  |ch's anonymous F|
000006d0  54 50 20 53 65 72 76 65  72 0a 32 33 30 2d 20 20  |TP Server.230-  |
000006e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000006f0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000710  0a 32 33 30 2d 0a 32 33  30 2d 20 20 20 41 63 6f  |.230-.230-   Aco|
00000720  72 6e 20 41 72 63 68 69  6d 65 64 65 73 20 72 75  |rn Archimedes ru|
00000730  6e 6e 69 6e 67 20 21 54  43 50 49 50 20 28 41 72  |nning !TCPIP (Ar|
00000740  63 20 4b 41 39 51 29 20  56 32 2e 30 30 20 28 46  |c KA9Q) V2.00 (F|
00000750  54 50 20 53 65 72 76 65  72 29 0a 32 33 30 2d 0a  |TP Server).230-.|
00000760  32 33 30 2d 20 20 20 59  6f 75 20 68 61 76 65 20  |230-   You have |
00000770  61 20 72 65 61 63 68 65  64 20 61 20 70 72 69 76  |a reached a priv|
00000780  61 74 65 20 46 54 50 20  73 69 74 65 20 63 6f 6e  |ate FTP site con|
00000790  6e 65 63 74 65 64 20 76  69 61 20 61 20 31 34 2e  |nected via a 14.|
000007a0  34 4b 20 6d 6f 64 65 6d  2e 0a 32 33 30 2d 0a 32  |4K modem..230-.2|
000007b0  33 30 2d 20 20 20 4c 6f  63 61 6c 20 74 69 6d 65  |30-   Local time|
000007c0  20 69 73 20 54 75 65 20  4a 75 6e 20 32 31 20 31  | is Tue Jun 21 1|
000007d0  33 3a 30 30 3a 34 39 20  31 39 39 34 2e 0a 32 33  |3:00:49 1994..23|
000007e0  30 2d 0a 32 33 30 2d 20  20 20 49 66 20 74 68 65  |0-.230-   If the|
000007f0  72 65 20 69 73 20 61 6e  79 74 68 69 6e 67 20 68  |re is anything h|
00000800  65 72 65 2c 20 79 6f 75  20 61 72 65 20 77 65 6c  |ere, you are wel|
00000810  63 6f 6d 65 20 74 6f 20  69 74 2e 20 41 6e 79 20  |come to it. Any |
00000820  73 6d 61 6c 6c 20 75 70  6c 6f 61 64 73 0a 32 33  |small uploads.23|
00000830  30 2d 20 20 20 77 65 6c  63 6f 6d 65 2c 20 70 6c  |0-   welcome, pl|
00000840  65 61 73 65 20 75 70 6c  6f 61 64 20 74 6f 20 22  |ease upload to "|
00000850  69 6e 63 6f 6d 69 6e 67  22 2e 0a 32 33 30 2d 0a  |incoming"..230-.|
00000860  32 33 30 20 4c 6f 67 67  65 64 20 69 6e 20 61 73  |230 Logged in as|
00000870  20 61 6e 6f 6e 79 6d 6f  75 73 2c 20 72 65 73 74  | anonymous, rest|
00000880  72 69 63 74 69 6f 6e 73  20 61 70 70 6c 79 0a     |rictions apply.|
0000088f