BSD 3 development
[unix-history] / usr / src / cmd / uucp / README
CommitLineData
9ae2013b
BJ
1 A substantial number of minor changes were made to ``uucp''
2at the end of February and early March, before Dave Nowitz returned
3to Piscataway. Changes made after March, 15, 1979, will be available through
4stockroom category, ``uucp_changes''. Any installation with a version
5of ``uucp'' obtained before March 15, should obtain the whole
6distribution afresh.
7
8 Most of the changes are relatively benign. See the file CHANGES
9for a list of what has been done. PLEASE NOTE that there is one
10important difference between the present version and previous versions:
11there is a change to the file ``L-devices''. For each entry representing
12an ACU insert the string "ACU " at the beginning of the line; for each
13direct connection, insert "DIR ". This should take all of a minute.
14
15 Two short shell procedures, ``uutest'' and ``uucheck'' are
16included in the distribution. You may find them useful for administrative
17purposes. Put links to them in your personal bin directory. (On
18our system, they live in /usr/lib/uucp.)
19
20 PWB 1.2 SYSTEMS
21 There is a new stockroom category, called ``pwbuucp'', (made March 21)
22which gives additional information regarding installing uucp on PWB 1.2
23systems. This information is by courtesy of Brian Redman.
24
25 GENERAL INSTRUCTIONS
26 Before running "uucp", you should change the define for "MYNAME"
27in "uucp.h" to whoever you are, and recompile.
28As delivered, "uucp" thinks that it is running on the ``usg'' system.
29
30NOTE - To export executable code:
31A new routine (uucpname.c) has been added which returns the local uucp name.
32If no action is taken, this routine will return the value
33of "MYNAME". By defining "UNAME" as value 1 in "uucp.h", the value returned
34is determined by a call to "uname(&utsname)" where utsname is a structure
35which contains an element "nodename" - the uucpname for the local system.
36
37 Since all ACUs are not created equal, the last character which must
38be sent to the ACU may differ on your system. The value "ACULAST" in
39"uucp.h" should be modified if necessary.
40
41 To run successfully you will need to provide working
42versions of the following files:
43
44 L-devices entries for call-units and hard-wired connections
45 L-dialcodes decodes abbreviations occurring in L.sys
46 L.sys pertinent details about other systems that you
47 may call, as the result of prior agreement.
48 USERFILE user accessibility information
49
50The information in these files is specific to each installation.
51The versions supplied are arbitrarily modified versions of files
52used on the Usg machine, and are provided only for your
53information.
54
55 As delivered, "uucp" is set up to use the following
56directories (contrary to some documentation):
57
58 /usr/src/cmd/uucp source files
59 /usr/lib/uucp executable programs and data files
60 /usr/spool/uucp work-in-progress
61 /usr/lib/uucp/.XQTDIR work area for "uuxqt"
62 /usr/spool/uucppublic uucp public directory
63
64"/usr/bin/uucp (uux)" is linked to "/usr/lib/uucp/uucp (uux)".
65
66NOTE - some resent changes have moved some to the directories.
67The names appear in uucp.h and the "uucp.mk" file.
68(SPOOL, XQTDIR, PUBDIR, INSDIR, THISDIR)
69The login directory for the uucp login(s) should be the PUBDIR
70directory.
71
72 Note also that there is an array called "Cmds" in the file
73"uuxqt.c" which names the commands which may be executed at
74the request of a remote user, via "uux". You will most probably
75wish to modify the initialization of this array, to reflect the
76commands you are willing to allow on your system.
77
78 The ``mail'' command has been modified, so that it may
79only be used to send mail, when it is invoked under a name beginning
80with 'r'. (In the receive mode, it can be used to invoke a shell,
81thus creating a potential security hole.)
82When sending mail to a remote site, ``mail'' invokes the ``rmail''
83command at the remote site. Hence you should create an ``rmail''
84command by linking to ``/bin/mail", and ensure that ``Cmds''
85contains an entry for ``rmail'', but not ``mail''.
86
87 Note that other systems which may contact you via "uucp"
88will have to login using information that you supply. When UNIX/TS is
89delivered there is a user "uucp" (with no initial password) whose
90default shell is (and must be) "/usr/lib/uucp/uucico". If you
91wish to use "uucp" to contact other systems you will need to
92obtain username and password information from them in advance and
93to store this in "L.sys". Since the file "L.sys" contains
94sensitive information about how to access other systems which are
95willing to converse with you, it is important that the "L.sys"
96file be properly protected. You will find that ensuring a high
97level of protection is not a trivial task. As a minimum you will
98need to set correctly the permissions on the file itself, its
99parent directory and every executable "set-uid-to-root" file in
100your whole system ... and then ensure that the root password is
101secure ... as a bare minimum.
102
103 The programs "uuclean" and "uulog" are provided for
104housekeeping. These should be run frequently, e.g. by "cron".
105Prototypes of procedures that may be run by "cron" are provided
106here as the files "uudemon.*". Note also that "uudemon.hr"
107starts up "uucico" to initiate transfers that have been delayed
108for some reason, or to poll passive systems for work.
109
110 Some installations may wish to use both the old and new
111versions of "uucp" concurrently for a while. This will be because some
112but not all of your correspondents have made the switch from the
113old to the new. The old version is no longer supported and the
114switch should be made as soon as possible. In the interim, you
115may replace the /usr/bin/uucp (which is linked to
116/usr/lib/uucp/uucp) by a shell procedure such as:
117
118 for i in $*
119 do
120 case $i in
121 old!* | dull!* | slow!* )
122 /usr/lib/uucp/olduucp $*
123 echo old uucp used
124 exit;;
125 esac
126 /usr/lib/uucp/uucp $*
127
128(This assumes that the old version of "uucp" has been moved to "olduucp".)
129
130For further information contact D. Nowitz (PY 6120) or
131J. Lions (MH 5667) or U. Arazy (MH 7659).