add connect accounting ifdef. increase LLEN to 150
[unix-history] / usr / src / usr.bin / uucp / man5 / L-dialcodes.5
CommitLineData
55331617
KM
1.\" Copyright (c) 1986 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
5.\" @(#)L-dialcodes.5 6.1 (Berkeley) %G%
6.\"
7.TH L-DIALCODES 5 ""
8.UC 6
9.SH NAME
10L-dialcodes \- UUCP phone number index file
11.SH DESCRIPTION
12The
13.I L-dialcodes
14file defines the mapping of strings from the phone number field of
15.IR L.sys (5)
16to actual phone numbers.
17.PP
18Each line in L-dialcodes has the form:
19.PP
20.nf
21 alpha_string phone_number
22.fi
23.PP
24The two items can be separated by any number of blanks or tabs. Lines beginning
25with a `#' character are comments.
26.PP
27A phone number in
28.I L.sys
29can be preceded by an arbitrary alphabetic character string; the string
30is matched against the list of
31.IR alpha_string s
32in
33.IR L-dialcodes .
34If a match is found,
35.I phone_number
36is substituted for it. If no match is found, the string is discarded.
37.PP
38.I L-dialcodes
39is commonly used either of two ways:
40.TP 4
41(1)
42The alphabetic strings are used as prefixes to denote area codes, zones,
43and other commonly used sequences. For example, if
44.I L-dialcodes
45included the following lines:
46.PP
47.nf
48 chi 1312
49.br
50 mv 1415
51.fi
52.PP
53In
54.I L.sys
55you could enter:
56.PP
57.nf
58 chivax Any ACU 1200 chi5551234 ogin:--ogin: nuucp
59.br
60 mvpyr Any ACU 1200 mv5556001 ogin:--ogin: Uuucp
61
62instead of
63
64 chivax Any ACU 1200 13125551234 ogin:--ogin: nuucp
65.br
66 mvpyr Any ACU 1200 14155556001 ogin:--ogin: Uuucp
67.fi
68.TP 4
69(2)
70All phone numbers are placed in
71.IR L-dialcodes ,
72one for each remote site.
73.I L.sys
74then refers to these by name. For example, if
75.I L-dialcodes
76contains the following lines:
77.PP
78.nf
79 chivax 13125551234
80.br
81 mvpyr 14155556601
82.fi
83.PP
84then
85.I L.sys
86could have:
87.PP
88.nf
89 chivax Any ACU 1200 chivax ogin:--ogin: nuucp
90.br
91 mvpyr Any ACU 1200 mvpyr ogin:--ogin: Uuucp
92.fi
93.PP
94This scheme allows a site administrator to give users read access to the
95table of phone numbers, while still protecting the login/password sequences
96in
97.IR L.sys .
98.SH FILES
99.nf
100.ta \w'/usr/lib/uucp/UUAIDS/L-dialcodes 'u
101/usr/lib/uucp/L-dialcodes
102/usr/lib/uucp/UUAIDS/L-dialcodes L-dialcodes example
103.fi
104.SH SEE ALSO
105uucp(1C), uux(1C), L.sys(5), uucico(8C).