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