macro and text revision (-mdoc version 3)
[unix-history] / usr / src / usr.bin / uucp / uucico / uucico.8
CommitLineData
b42074ab
CL
1.\" Copyright (c) 1988, 1991 Regents of the University of California.
2.\" All rights reserved.
aafc3782 3.\"
b42074ab 4.\" %sccs.include.redist.man%
f68c9796 5.\"
b42074ab
CL
6.\" @(#)uucico.8 6.6 (Berkeley) %G%
7.\"
8.Dd
9.Dt UUCICO 8
10.Os BSD 4.3
11.Sh NAME
12.Nm uucico ,
13.Nm uucpd
14.Nd transfer files queued by uucp or uux
15.Sh SYNOPSIS
16.Nm uucico
17.Op Fl L
18.Op Fl R
19.Op Fl d Ns Ar spooldir
20.Op Fl g Ns Ar grade
21.Op Fl r Ns Ar role
22.Op Fl s Ns Ar system
23.Op Fl x Ns Ar debug
24.Op Fl t Ns Ar turnaround
25.Nm uucpd
26.Sh DESCRIPTION
27.Nm Uucico
aafc3782 28performs the actual work involved in transferring files between
b42074ab
CL
29systems.
30.Xr Uucp 1
aafc3782 31and
b42074ab 32.Xr uux 1
5f25fb9e 33merely queue requests for data transfer which
b42074ab 34.Nm uucico
5f25fb9e 35processes.
b42074ab 36.Pp
aafc3782 37The following options are available.
b42074ab
CL
38.Bl -tag -width Ds
39.It Fl L
40Only call
41.Dq local
42sites. A site is considered local if the device-type field in
43.Xr L.sys 5
44is one of
45.Tn LOCAL , DIR
46or
47.Tn TCP .
48.It Fl R
49Reverse roles. When used with the
50.Fl r Ns Ar 1
51option, this tells the remote system to begin sending its
52jobs first, instead of waiting for the local machine to finish.
53.It Fl d Ns Ar spooldir
aafc3782 54Use
b42074ab
CL
55.Ar spooldir
56as the spool directory. The default is
57.Pa /var/spool/uucp.
58.It Fl g Ns Ar grade
aafc3782 59Only send jobs of grade
b42074ab 60.Ar grade
aafc3782 61or higher this transfer.
5f25fb9e 62The grade of a job is specified when the job is queued by
b42074ab 63.Xr uucp 1
5f25fb9e 64or
b42074ab
CL
65.Xr uux 1 .
66.It Fl r Ns Ar role
67.Ar role
5f25fb9e 68is either 1 or 0; it indicates whether
b42074ab
CL
69.Nm uucico
70is to start up in
71master or slave role, respectively. 1 is used when running
72.Nm uucico
5f25fb9e 73by hand or from
b42074ab 74.Xr cron 8 .
5f25fb9e
KM
750 is used when another system calls the local system.
76Slave role is the default.
b42074ab 77.It Fl s Ns Ar system
aafc3782 78Call only system
b42074ab
CL
79.Ar system .
80If
81.Fl s
82is not specified, and
83.Fl r Ns Ar 1
84is specified,
85.Nm uucico
aafc3782
JB
86will attempt to call all systems for which there is work.
87If
b42074ab 88.Fl s
aafc3782 89is specified, a call will be made even if there is
5f25fb9e 90no work for that system. This is useful for polling.
b42074ab 91.It Fl t Ns Ar turnaround
aafc3782 92Use
b42074ab
CL
93.Ar turnaround
94as the line turnaround time (in minutes) instead of the default 30. If
95.Ar turnaround
aafc3782 96is missing or 0, line turnaround will be disabled.
5f25fb9e 97After
b42074ab 98.Nm uucico
5f25fb9e 99has been running in slave role for
b42074ab 100.Ar turnaround
5f25fb9e
KM
101minutes, it will attempt to run in master role by negotiating with the
102remote machine.
103In earlier versions of
b42074ab 104.Nm uucico ,
5f25fb9e
KM
105a transfer of many large files in one direction would hold up mail
106going in the other direction.
aafc3782
JB
107With the turnaround code working, the message flow will be more
108bidirectional in the short term.
5f25fb9e 109This option only works with newer
b42074ab 110.Nm uucico Ns 's
5f25fb9e 111and is ignored by older ones.
b42074ab
CL
112.It Fl x Ns Ar debug
113Turn on debugging at level
114.Ar debug .
115Level 5 is a good start when trying to find out why a call
116failed. Level 9 is very detailed. Level 99 is absurdly verbose.
117If
118.Ar role
119is 1 (master), output is written to the standard error
120.Em stderr .
121If
122.Em stderr
123is unavailable, output is written to
124.Pa /var/spool/uucp/AUDIT/ Ns Ar system .
125When
126.Ar role
127is 0 (slave), debugging output is always written to the
128AUDIT
129file.
130.El
131.Pp
aafc3782 132If
b42074ab 133.Nm uucico
aafc3782 134receives a
b42074ab 135.Dv SIGFPE
aafc3782 136(see
b42074ab 137.Xr kill 1 ) ,
aafc3782 138it will toggle the debugging on or off.
b42074ab
CL
139.Pp
140.Nm Uucpd
4d9d48c2 141is the server for supporting uucp connections over networks.
b42074ab 142.Nm Uucpd
4d9d48c2 143listens for service requests at the port indicated in the ``uucp''
b42074ab
CL
144service specification; see
145.Xr services 5 .
4d9d48c2 146The server provides login name and password authentication before starting up
b42074ab 147.Nm uucico
4d9d48c2 148for the rest of the transaction.
b42074ab
CL
149.Pp
150.Nm Uucico
5f25fb9e 151is commonly used either of two ways: as a daemon run periodically by
b42074ab 152.Xr cron 8
5f25fb9e
KM
153to call out to remote systems, and as a ``shell'' for remote systems
154who call in.
155For calling out periodically, a typical line in
b42074ab 156.Xr crontab
5f25fb9e 157would be:
b42074ab
CL
158.Bd -literal
1590 * * * * /usr/lib/uucp/uucico -r1
160.Ed
161.Pp
5f25fb9e 162This will run
b42074ab
CL
163.Nm uucico
164every hour in master role.
165For each system that has transfer requests queued,
166.Nm uucico
5f25fb9e 167calls the system, logs in, and executes the transfers. The file
b42074ab 168.Xr L.sys 5
5f25fb9e 169is consulted for information about how to log in, while
b42074ab 170.Xr L-devices 5
5f25fb9e 171specifies available lines and modems for calling.
b42074ab 172.Pp
5f25fb9e 173For remote systems to dial in, an entry in the
b42074ab 174.Xr passwd 5
5f25fb9e 175file must be created, with a login ``shell'' of
b42074ab 176.Nm uucico .
5f25fb9e 177For example:
b42074ab
CL
178.Bd -literal
179nuucp:Password:6:1::/var/spool/uucppublic:/usr/lib/uucp/uucico
180.Ed
181.Pp
182The
183.Tn UID
184for
185.Tn UUCP
186remote logins is not critical, so long as it differs from
187the
188.Tn UUCP
189Administrative login.
190The latter owns the
191.Tn UUCP
192files, and assigning
193this
194.Tn UID
195to a remote login would be an extreme security hazard.
196.Sh FILES
197.Bl -tag -width /var/spool/uucp/D.hostnameX/ -compact
198.It Pa /usr/lib/uucp/
199.Tn UUCP
200internal files/utilities
201.It Pa /usr/lib/uucp/L-devices
202Local device descriptions
203.It Pa /usr/lib/uucp/L-dialcodes
204Phone numbers and prefixes
205.It Pa /usr/lib/uucp/L.aliases
206Hostname aliases
207.It Pa /usr/lib/uucp/L.cmds
208Remote command permissions list
209.It Pa /usr/lib/uucp/L.sys
210Host connection specifications
211.It Pa /usr/lib/uucp/USERFILE
212Remote directory tree permissions list
213.It Pa /var/spool/uucp/
214Spool directory
215.It Pa /var/spool/uucp/AUDIT/*
216Debugging audit trails
217.It Pa /var/spool/uucp/C./
218Control files directory
219.It Pa /var/spool/uucp/D./
220Incoming data file directory
221.It Pa /var/spool/uucp/D.hostname/
222Outgoing data file directory
223.It Pa /var/spool/uucp/D.hostnameX/
224Outgoing execution file directory
225.It Pa /var/spool/uucp/CORRUPT/
226Place for corrupted C. and D. files
227.It Pa /var/spool/uucp/ERRLOG
228.Tn UUCP
229internal error log
230.It Pa /var/spool/uucp/LOGFILE
231.Tn UUCP
232system activity log
233.It Pa /var/spool/uucp/LCK/LCK..*
234Device lock files
235.It Pa /var/spool/uucp/
236.Tn SYSLOG
237File transfer statistics log
238.It Pa /var/spool/uucp/STST/*
239System status files
240.It Pa /var/spool/uucp/TM./
241File transfer temp directory
242.It Pa /var/spool/uucp/X./
243Incoming execution file directory
244.It Pa /var/spool/uucppublic
245Public access directory
246.El
247.Sh SEE ALSO
248.Xr uucp 1 ,
249.Xr uuq 1 ,
250.Xr uux 1 ,
251.Xr L-devices 5 ,
252.Xr L-dialcodes 5 ,
253.Xr L.aliases 5 ,
254.Xr L.cmds 5 ,
255.Xr L.sys 5 ,
256.Xr uuclean 8 ,
257.Xr uupoll 8 ,
258.Xr uusnap 8 ,
259.Xr uuxqt 8
260.Rs
261.%A D. A. Nowitz
262.%A M. E. Lesk
263.%T "A Dial-Up Network of UNIX Systems"
264.Re
265.Rs
266.%A D. A. Nowitz
267.%T "Uucp Implementation Description"
268.Re
269.Sh HISTORY
270The
271.Nm
272command appeared in
273.Bx 4.3 .