|
|
The following steps demonstrate how to configure UUCP over TCP/IP using TLI between the systems london and thames. The example shown by the following procedure is a configuration where the host london initiates all UUCP requests, while the host thames listens and responds to all requests. If you want both hosts to be able to use the uucp command to initiate a UUCP transaction, repeat this procedure on each host, exchanging host names where appropriate.
02 00 02 ba 84 93 76 03 00 00 00 00 00 00 00 00for a total of 16 bytes.
\002\000\002\272\204\223\166\003\000\000\000\000\000\000\000\000
This creates the directory /usr/net/nls/inet/tcp and allows us to add services that listen on the device /dev/inet/tcp.
This adds service number 101, which executes the command /usr/lib/uucp/uucico -r0 -iTLI -unuucp as the user uucp, when a request for service number 101 is received on the device /dev/inet/tcp.
The options and arguments to nlsadmin are:
The options to the uucico command in the -c option of nlsadmin are:
This is the hexadecimal representation of the address constructed in step 2.
london Never TLI,e AnyIf this line for london has already been added for TLI so that thames can initiate a connection, make no changes to the /usr/lib/uucp/Systems file.
MACHINE=london LOGNAME=nuucp \ COMMANDS=rmail:rnews:uucp \ READ=/usr/spool/uucppublic:/usr/tmp \ WRITE=/usr/spool/uucppublic:/usr/tmp \ SENDFILES=yes REQUEST=yes
thames Any TLI,e Any addresswhere address is the octal representation of the address constructed in step 2. Thus the line to add is:
thames Any TLI,e Any \002\000\002\272\204\223\166\003 \000\000\000\000\000\000\000\000This should all be on one line. The backslashes surrounding each octal byte are required.
TLI inet/tcp - Any TLI \D nls
nls "" "" NLPS:000:001:101\N\cNote that the ``101'' specified here matches the service code added with nlsadmin -a in step 3b.
MACHINE=thames LOGNAME=nuucp \ COMMANDS=rmail:rnews:uucp \ READ=/usr/spool/uucppublic:/usr/tmp \ WRITE=/usr/spool/uucppublic:/usr/tmp \ SENDFILES=yes REQUEST=yes
nlsadmin -s inet/tcp 2>/dev/null [ $? = 0 ] && echo "Started listener"