]>
Commit | Line | Data |
---|---|---|
1815bff5 A |
1 | .\" Copyright (c) 1980, 1991, 1993 |
2 | .\" The Regents of the University of California. All rights reserved. | |
3 | .\" | |
4 | .\" Redistribution and use in source and binary forms, with or without | |
5 | .\" modification, are permitted provided that the following conditions | |
6 | .\" are met: | |
7 | .\" 1. Redistributions of source code must retain the above copyright | |
8 | .\" notice, this list of conditions and the following disclaimer. | |
9 | .\" 2. Redistributions in binary form must reproduce the above copyright | |
10 | .\" notice, this list of conditions and the following disclaimer in the | |
11 | .\" documentation and/or other materials provided with the distribution. | |
12 | .\" 3. All advertising materials mentioning features or use of this software | |
13 | .\" must display the following acknowledgement: | |
14 | .\" This product includes software developed by the University of | |
15 | .\" California, Berkeley and its contributors. | |
16 | .\" 4. Neither the name of the University nor the names of its contributors | |
17 | .\" may be used to endorse or promote products derived from this software | |
18 | .\" without specific prior written permission. | |
19 | .\" | |
20 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | |
21 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
22 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
23 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
24 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
25 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
26 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
27 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
28 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
30 | .\" SUCH DAMAGE. | |
31 | .\" | |
32 | .\" from: @(#)getty.8 8.1 (Berkeley) 6/4/93 | |
34d340d7 A |
33 | .\" $FreeBSD: src/libexec/getty/getty.8,v 1.16 2005/01/18 09:29:39 ru Exp $ |
34 | .\" " | |
1815bff5 A |
35 | .Dd June 4, 1993 |
36 | .Dt GETTY 8 | |
34d340d7 | 37 | .Os |
1815bff5 A |
38 | .Sh NAME |
39 | .Nm getty | |
40 | .Nd set terminal mode | |
41 | .Sh SYNOPSIS | |
34d340d7 A |
42 | .Nm |
43 | .Oo | |
1815bff5 A |
44 | .Ar type |
45 | .Op Ar tty | |
46 | .Oc | |
47 | .Sh DESCRIPTION | |
48 | The | |
34d340d7 A |
49 | .Nm |
50 | utility is called by | |
51 | .Xr launchd 8 | |
1815bff5 A |
52 | to open and initialize the tty line, read a login name, and invoke |
53 | .Xr login 1 . | |
54 | .Pp | |
55 | The argument | |
56 | .Ar tty | |
57 | is the special device file in | |
58 | .Pa /dev | |
59 | to open for the terminal (for example, ``ttyh0''). | |
60 | If there is no argument or the argument is | |
34d340d7 | 61 | .Sq Fl , |
1815bff5 A |
62 | the tty line is assumed to be open as file descriptor 0. |
63 | .Pp | |
64 | The | |
65 | .Ar type | |
66 | argument can be used to make | |
34d340d7 | 67 | .Nm |
1815bff5 A |
68 | treat the terminal line specially. |
69 | This argument is used as an index into the | |
34d340d7 | 70 | .Xr gettytab 5 |
1815bff5 A |
71 | database, to determine the characteristics of the line. |
72 | If there is no argument, or there is no such table, the | |
73 | .Em default | |
74 | table is used. | |
75 | If there is no | |
76 | .Pa /etc/gettytab | |
77 | a set of system defaults is used. | |
78 | If indicated by the table located, | |
34d340d7 | 79 | .Nm |
1815bff5 A |
80 | will clear the terminal screen, |
81 | print a banner heading, | |
82 | and prompt for a login name. | |
83 | Usually either the banner or the login prompt will include | |
84 | the system hostname. | |
85 | .Pp | |
86 | Most of the default actions of | |
34d340d7 | 87 | .Nm |
1815bff5 | 88 | can be circumvented, or modified, by a suitable |
34d340d7 | 89 | .Pa gettytab |
1815bff5 A |
90 | table. |
91 | .Pp | |
92 | The | |
34d340d7 A |
93 | .Nm |
94 | utility can be set to timeout after some interval, | |
1815bff5 A |
95 | which will cause dial up lines to hang up |
96 | if the login name is not entered reasonably quickly. | |
34d340d7 A |
97 | .Sh FILES |
98 | .Bl -tag -width /etc/gettytab -compact | |
99 | .It Pa /etc/gettytab | |
100 | .It Pa /etc/ttys | |
101 | .El | |
1815bff5 A |
102 | .Sh DIAGNOSTICS |
103 | .Bl -diag | |
104 | .It "ttyxx: No such device or address." | |
105 | .It "ttyxx: No such file or address." | |
34d340d7 | 106 | .Pp |
1815bff5 A |
107 | A terminal which is turned |
108 | on in the | |
34d340d7 | 109 | .Pa ttys |
1815bff5 A |
110 | file cannot be opened, likely because the requisite |
111 | lines are either not configured into the system, the associated device | |
112 | was not attached during boot-time system configuration, | |
113 | or the special file in | |
114 | .Pa /dev | |
115 | does not exist. | |
116 | .El | |
1815bff5 | 117 | .Sh SEE ALSO |
1815bff5 A |
118 | .Xr login 1 , |
119 | .Xr ioctl 2 , | |
120 | .Xr tty 4 , | |
34d340d7 A |
121 | .Xr gettytab 5 , |
122 | .Xr ttys 5 , | |
123 | .Xr launchd 8 | |
1815bff5 A |
124 | .Sh HISTORY |
125 | A | |
34d340d7 A |
126 | .Nm |
127 | utility appeared in | |
1815bff5 | 128 | .At v6 . |