xref: /freebsd/libexec/getty/getty.8 (revision 43581d7b6617959e4452094d9330ef020034a6c9)
1cae66988SJoerg Wunsch.\" Copyright (c) 1980, 1991, 1993
2cae66988SJoerg Wunsch.\"	The Regents of the University of California.  All rights reserved.
3ea022d16SRodney W. Grimes.\"
4ea022d16SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
5ea022d16SRodney W. Grimes.\" modification, are permitted provided that the following conditions
6ea022d16SRodney W. Grimes.\" are met:
7ea022d16SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
8ea022d16SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
9ea022d16SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
10ea022d16SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
11ea022d16SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
125efaea4cSChristian Brueffer.\" 3. Neither the name of the University nor the names of its contributors
13ea022d16SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
14ea022d16SRodney W. Grimes.\"    without specific prior written permission.
15ea022d16SRodney W. Grimes.\"
16ea022d16SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17ea022d16SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18ea022d16SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19ea022d16SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20ea022d16SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21ea022d16SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22ea022d16SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23ea022d16SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24ea022d16SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25ea022d16SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26ea022d16SRodney W. Grimes.\" SUCH DAMAGE.
27cae66988SJoerg Wunsch.\" "
28*49d941eeSWarner Losh.Dd July 21, 2020
29ea022d16SRodney W. Grimes.Dt GETTY 8
300efe23d6SRuslan Ermilov.Os
31ea022d16SRodney W. Grimes.Sh NAME
32ea022d16SRodney W. Grimes.Nm getty
33ea022d16SRodney W. Grimes.Nd set terminal mode
34ea022d16SRodney W. Grimes.Sh SYNOPSIS
3576081989SRuslan Ermilov.Nm
36ea022d16SRodney W. Grimes.Oo
37ea022d16SRodney W. Grimes.Ar type
38ea022d16SRodney W. Grimes.Op Ar tty
39ea022d16SRodney W. Grimes.Oc
40ea022d16SRodney W. Grimes.Sh DESCRIPTION
41ea022d16SRodney W. GrimesThe
42d748864dSPhilippe Charnier.Nm
433f162cb8SPhilippe Charnierutility is called by
44ea022d16SRodney W. Grimes.Xr init 8
45ea022d16SRodney W. Grimesto open and initialize the tty line, read a login name, and invoke
46ea022d16SRodney W. Grimes.Xr login 1 .
47ea022d16SRodney W. Grimes.Pp
48ea022d16SRodney W. GrimesThe argument
49ea022d16SRodney W. Grimes.Ar tty
50ea022d16SRodney W. Grimesis the special device file in
51ea022d16SRodney W. Grimes.Pa /dev
52ea022d16SRodney W. Grimesto open for the terminal (for example, ``ttyh0'').
53ea022d16SRodney W. GrimesIf there is no argument or the argument is
54463cfa80SRuslan Ermilov.Sq Fl ,
55ea022d16SRodney W. Grimesthe tty line is assumed to be open as file descriptor 0.
56ea022d16SRodney W. Grimes.Pp
57ea022d16SRodney W. GrimesThe
58ea022d16SRodney W. Grimes.Ar type
59ea022d16SRodney W. Grimesargument can be used to make
60d748864dSPhilippe Charnier.Nm
61ea022d16SRodney W. Grimestreat the terminal line specially.
62ea022d16SRodney W. GrimesThis argument is used as an index into the
63f000d0afSSteve Price.Xr gettytab 5
64ea022d16SRodney W. Grimesdatabase, to determine the characteristics of the line.
65ea022d16SRodney W. GrimesIf there is no argument, or there is no such table, the
66ea022d16SRodney W. Grimes.Em default
67ea022d16SRodney W. Grimestable is used.
68ea022d16SRodney W. GrimesIf there is no
69ea022d16SRodney W. Grimes.Pa /etc/gettytab
70ea022d16SRodney W. Grimesa set of system defaults is used.
71ea022d16SRodney W. GrimesIf indicated by the table located,
72d748864dSPhilippe Charnier.Nm
73ea022d16SRodney W. Grimeswill clear the terminal screen,
74ea022d16SRodney W. Grimesprint a banner heading,
75ea022d16SRodney W. Grimesand prompt for a login name.
76ea022d16SRodney W. GrimesUsually either the banner or the login prompt will include
77ea022d16SRodney W. Grimesthe system hostname.
78ea022d16SRodney W. Grimes.Pp
79ea022d16SRodney W. GrimesMost of the default actions of
80d748864dSPhilippe Charnier.Nm
81ea022d16SRodney W. Grimescan be circumvented, or modified, by a suitable
82d748864dSPhilippe Charnier.Pa gettytab
83ea022d16SRodney W. Grimestable.
84ea022d16SRodney W. Grimes.Pp
85ea022d16SRodney W. GrimesThe
86d748864dSPhilippe Charnier.Nm
873f162cb8SPhilippe Charnierutility can be set to timeout after some interval,
88ea022d16SRodney W. Grimeswhich will cause dial up lines to hang up
89ea022d16SRodney W. Grimesif the login name is not entered reasonably quickly.
90a3ac07a5SRuslan Ermilov.Sh FILES
91a3ac07a5SRuslan Ermilov.Bl -tag -width /etc/gettytab -compact
92a3ac07a5SRuslan Ermilov.It Pa /etc/gettytab
93a3ac07a5SRuslan Ermilov.It Pa /etc/ttys
94a3ac07a5SRuslan Ermilov.El
95ea022d16SRodney W. Grimes.Sh DIAGNOSTICS
96ea022d16SRodney W. Grimes.Bl -diag
97ea022d16SRodney W. Grimes.It "ttyxx: No such device or address."
98ea022d16SRodney W. Grimes.It "ttyxx: No such file or address."
99d748864dSPhilippe Charnier.Pp
100ea022d16SRodney W. GrimesA terminal which is turned
101ea022d16SRodney W. Grimeson in the
102d748864dSPhilippe Charnier.Pa ttys
103ea022d16SRodney W. Grimesfile cannot be opened, likely because the requisite
104ea022d16SRodney W. Grimeslines are either not configured into the system, the associated device
105ea022d16SRodney W. Grimeswas not attached during boot-time system configuration,
106ea022d16SRodney W. Grimesor the special file in
107ea022d16SRodney W. Grimes.Pa /dev
108ea022d16SRodney W. Grimesdoes not exist.
109ea022d16SRodney W. Grimes.El
110ea022d16SRodney W. Grimes.Sh SEE ALSO
111ea022d16SRodney W. Grimes.Xr login 1 ,
112ea022d16SRodney W. Grimes.Xr ioctl 2 ,
113ea022d16SRodney W. Grimes.Xr tty 4 ,
114af202156SWolfram Schneider.Xr gettytab 5 ,
115af202156SWolfram Schneider.Xr ttys 5 ,
1167a467312SEdward Tomasz Napierala.Xr init 8 ,
1177a467312SEdward Tomasz Napierala.Xr pstat 8
118ea022d16SRodney W. Grimes.Sh HISTORY
119ea022d16SRodney W. GrimesA
120d748864dSPhilippe Charnier.Nm
1213f162cb8SPhilippe Charnierutility appeared in
122*49d941eeSWarner Losh.At v3 .
123