1*41ce3b17Snaddy.\" $OpenBSD: getty.8,v 1.17 2022/03/31 17:27:18 naddy Exp $ 2df930be7Sderaadt.\" Copyright (c) 1980, 1991, 1993 3df930be7Sderaadt.\" The Regents of the University of California. All rights reserved. 4df930be7Sderaadt.\" 5df930be7Sderaadt.\" Redistribution and use in source and binary forms, with or without 6df930be7Sderaadt.\" modification, are permitted provided that the following conditions 7df930be7Sderaadt.\" are met: 8df930be7Sderaadt.\" 1. Redistributions of source code must retain the above copyright 9df930be7Sderaadt.\" notice, this list of conditions and the following disclaimer. 10df930be7Sderaadt.\" 2. Redistributions in binary form must reproduce the above copyright 11df930be7Sderaadt.\" notice, this list of conditions and the following disclaimer in the 12df930be7Sderaadt.\" documentation and/or other materials provided with the distribution. 13e33d3bd3Smillert.\" 3. Neither the name of the University nor the names of its contributors 14df930be7Sderaadt.\" may be used to endorse or promote products derived from this software 15df930be7Sderaadt.\" without specific prior written permission. 16df930be7Sderaadt.\" 17df930be7Sderaadt.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 18df930be7Sderaadt.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19df930be7Sderaadt.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20df930be7Sderaadt.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 21df930be7Sderaadt.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22df930be7Sderaadt.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23df930be7Sderaadt.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24df930be7Sderaadt.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25df930be7Sderaadt.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26df930be7Sderaadt.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27df930be7Sderaadt.\" SUCH DAMAGE. 28df930be7Sderaadt.\" 29df930be7Sderaadt.\" from: @(#)getty.8 8.1 (Berkeley) 6/4/93 30df930be7Sderaadt.\" 31*41ce3b17Snaddy.Dd $Mdocdate: March 31 2022 $ 32df930be7Sderaadt.Dt GETTY 8 33fc8533a3Saaron.Os 34df930be7Sderaadt.Sh NAME 35df930be7Sderaadt.Nm getty 36df930be7Sderaadt.Nd set terminal mode 37df930be7Sderaadt.Sh SYNOPSIS 38df930be7Sderaadt.Nm getty 39df930be7Sderaadt.Oo 40df930be7Sderaadt.Ar type 41df930be7Sderaadt.Op Ar tty 42df930be7Sderaadt.Oc 43df930be7Sderaadt.Sh DESCRIPTION 44df930be7SderaadtThe 452e1f860aSaaron.Nm 46df930be7Sderaadtprogram 47df930be7Sderaadtis called by 48df930be7Sderaadt.Xr init 8 49df930be7Sderaadtto open and initialize the tty line, read a login name, and invoke 50df930be7Sderaadt.Xr login 1 . 51df930be7Sderaadt.Pp 52df930be7SderaadtThe argument 53df930be7Sderaadt.Ar tty 54df930be7Sderaadtis the special device file in 55df930be7Sderaadt.Pa /dev 56d01fe417Sbentleyto open for the terminal (for example, 57d01fe417Sbentley.Pa ttyh0 ) . 58df930be7SderaadtIf there is no argument or the argument is 59310ed8f1Sjmc.Sq - , 60df930be7Sderaadtthe tty line is assumed to be open as file descriptor 0. 61df930be7Sderaadt.Pp 62df930be7SderaadtThe 63df930be7Sderaadt.Ar type 64df930be7Sderaadtargument can be used to make 652e1f860aSaaron.Nm 66df930be7Sderaadttreat the terminal line specially. 67df930be7SderaadtThis argument is used as an index into the 68858b719aSangelos.Xr gettytab 5 69df930be7Sderaadtdatabase, to determine the characteristics of the line. 70df930be7SderaadtIf there is no argument, or there is no such table, the 71df930be7Sderaadt.Em default 72df930be7Sderaadttable is used. 73df930be7SderaadtIf there is no 74*41ce3b17Snaddy.Pa /etc/gettytab , 75df930be7Sderaadta set of system defaults is used. 76df930be7SderaadtIf indicated by the table located, 772e1f860aSaaron.Nm 78df930be7Sderaadtwill clear the terminal screen, 79df930be7Sderaadtprint a banner heading, 80df930be7Sderaadtand prompt for a login name. 81df930be7SderaadtUsually either the banner or the login prompt will include 82df930be7Sderaadtthe system hostname. 83df930be7Sderaadt.Pp 84df930be7SderaadtMost of the default actions of 852e1f860aSaaron.Nm 86df930be7Sderaadtcan be circumvented, or modified, by a suitable 87858b719aSangelos.Xr gettytab 5 88df930be7Sderaadttable. 89df930be7Sderaadt.Pp 90df930be7SderaadtThe 912e1f860aSaaron.Nm 92df930be7Sderaadtprogram 93df930be7Sderaadtcan be set to timeout after some interval, 94df930be7Sderaadtwhich will cause dial up lines to hang up 95df930be7Sderaadtif the login name is not entered reasonably quickly. 96fed231abSmillert.Sh RESOURCES 97fed231abSmillert.Nm 98fed231abSmillertis started by 99fed231abSmillert.Xr init 8 , 100fed231abSmillertwith a process priority, umask, and resource limits based on the 101fed231abSmillert.Dq default 102fed231abSmillertentry in 103fed231abSmillert.Pa /etc/login.conf . 104fbaa3c82Sjmc.Sh FILES 105fbaa3c82Sjmc.Bl -tag -width /etc/gettytab -compact 106fbaa3c82Sjmc.It Pa /etc/gettytab 107fbaa3c82Sjmc.El 108df930be7Sderaadt.Sh DIAGNOSTICS 109df930be7Sderaadt.Bl -diag 110df930be7Sderaadt.It "ttyxx: No such device or address." 111df930be7Sderaadt.It "ttyxx: No such file or address." 112df930be7SderaadtA terminal which is turned 113df930be7Sderaadton in the 114bd9e08d2Smpech.Xr ttys 5 115df930be7Sderaadtfile cannot be opened, likely because the requisite 116df930be7Sderaadtlines are either not configured into the system, the associated device 117df930be7Sderaadtwas not attached during boot-time system configuration, 118df930be7Sderaadtor the special file in 119df930be7Sderaadt.Pa /dev 120df930be7Sderaadtdoes not exist. 121df930be7Sderaadt.El 122df930be7Sderaadt.Sh SEE ALSO 123df930be7Sderaadt.Xr login 1 , 124df930be7Sderaadt.Xr ioctl 2 , 125df930be7Sderaadt.Xr tty 4 , 126350bb3b8Salex.Xr gettytab 5 , 127fed231abSmillert.Xr login.conf 5 , 128350bb3b8Salex.Xr ttys 5 , 129350bb3b8Salex.Xr init 8 130df930be7Sderaadt.Sh HISTORY 131df930be7SderaadtA 1322e1f860aSaaron.Nm 133df930be7Sderaadtprogram appeared in 13401c04610Sjsg.At v2 . 135