1 .\" $NetBSD: ttys.5,v 1.18 2012/04/21 12:27:28 roy Exp $
3 .\" Copyright (c) 1985, 1991, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" from: @(#)ttys.5 8.1 (Berkeley) 6/4/93
37 .Nd terminal initialization information
41 contains information that is used by various routines to initialize
42 and control the use of terminal special files.
43 This information is read with the
47 There is one line in the
49 file per special device file.
50 Fields are separated by tabs and/or spaces.
51 Fields comprising more than one word should be enclosed in double
53 Blank lines and comments may appear anywhere in the file; comments
54 are delimited by hash marks (``#'') and new lines.
55 Any unspecified fields will default to null.
60 .Dl tty command type flags
62 The first field is the
63 name of the terminal special file as it is found in
66 The second field of the file is the command to execute for the line,
69 which initializes and opens the line, setting the speed, waiting for
70 a user name and executing the
73 However, it can be any desired command, for example the start up
74 for a window system terminal emulator or some other daemon process,
75 and can contain multiple words if quoted.
77 The third field is the type of terminal usually connected to that
78 tty line, normally the one found in the
81 The environment variable
83 is initialized with the value by either
88 The remaining fields set flags in the
92 or specify a window system process that
94 will maintain for the terminal line
95 or a key into a database of tty attributes (currently unused).
97 .Bl -tag -width softcar
98 .It Sy on No or Sy off
100 should (or should not) execute the command given in the second field.
104 is specified, allows users with a uid of 0
106 to login on this line.
115 flag to be set on every open and thus modem control signal lines will be
118 Causes the driver to ignore hardware carrier on the line (by setting the
126 flag for the device to enable
130 flow control by default.
135 flag for the device to enable
139 flow control by default.
148 modify the default behaviour of the terminal line, and their actions
149 are device driver dependent.
150 These flag fields should not be quoted.
152 The string ``window='' may be followed by a quoted command
157 starting the command specified by the second field.
159 The string ``class='' may be followed by a quoted string used
160 as a key into a database of attributes for that category of tty.
163 for more information on this feature.
169 signal can be sent to
172 .Dq Li "kill \-s HUP 1" .
173 On receipt of this signal,
177 file and spawn any necessary
188 change the state of the various
190 device flags listed above; the
192 program must be run for changes in those flags to take effect on the devices.
194 .Bl -tag -width /etc/ttys -compact
199 # root login on console at 1200 baud
200 console "/usr/libexec/getty std.1200" vt100 on secure
201 # dialup at 1200 baud, no root logins
202 ttyd0 "/usr/libexec/getty d1200" dialup on # 555-1234
203 # Mike's terminal: hp2621
204 ttyh0 "/usr/libexec/getty std.9600" hp2621-nl on # 457 Evans
205 # John's terminal: vt100
206 ttyh1 "/usr/libexec/getty std.9600" vt100 on # 459 Evans
207 # terminal emulate/window system
208 ttyv0 "/usr/new/xterm -L :0" vs100 on window="/usr/new/Xvs100 0"
209 # Network pseudo ttys -- don't enable getty
211 ttyp1 none network off