SCCS munges %M%
[unix-history] / usr / src / libexec / getty / ttys.5
CommitLineData
452cf41c
KB
1.\" Copyright (c) 1985 The Regents of the University of California.
2.\" All rights reserved.
3.\"
91cff1e1 4.\" %sccs.include.redist.man%
452cf41c 5.\"
91cff1e1 6.\" @(#)ttys.5 6.7 (Berkeley) %G%
6d85239e 7.\"
3892b435 8.TH TTYS 5 ""
6d85239e
KM
9.AT 3
10.SH NAME
11ttys \- terminal initialization data
12.SH DESCRIPTION
13The
14.I ttys
3892b435 15file contains information that is used by various routines to initialize
452cf41c
KB
16and control the use of terminal special files.
17This information is read with the
3892b435
KM
18.IR getttyent (3)
19library routines.
5dc2d425
KM
20There is one line in the
21.I ttys
22file per special file.
3892b435 23Fields are separated by tabs and/or spaces.
452cf41c
KB
24Fields comprised of more than one word should be enclosed in double
25quotes (``"'').
26Blank lines and comments may appear anywhere in the file; comments
27are delimited by hash marks (``#'') and new lines.
28Any unspecified fields will default to null.
29.PP
30The first field is the terminal's entry in the device directory, ``/dev''.
31.PP
3892b435
KM
32The second field of the file is the command to execute for the line,
33typically
6d85239e 34.IR getty (8),
5dc2d425 35which performs such tasks as baud-rate recognition, reading the login name,
6d85239e 36and calling
3892b435 37.IR login (1).
9a843f03 38It can be, however, any desired command, for example
597e0114 39the start up for a window system terminal emulator or some other
026d867c 40daemon process, and can contain multiple words if quoted.
452cf41c
KB
41.PP
42The third field is the type of terminal usually connected to that
43tty line, normally the one found in the
3892b435
KM
44.IR termcap (5)
45data base file.
452cf41c
KB
46The environmental variable ``TERM'' is initialized with the value by
47either
48.IR getty (8)
49or
50.IR login (1).
51.PP
597e0114 52The remaining fields set flags in the
3892b435
KM
53.I ty_status
54entry (see
55.IR getttyent (3))
597e0114
JL
56or specify a window system process that
57.IR init (8)
3892b435 58will maintain for the terminal line.
452cf41c
KB
59.PP
60As flag values, the strings ``on'' and ``off'' specify that
597e0114 61.I init
452cf41c
KB
62should (should not) execute the command given in the second field,
63while ``secure'' (if ``on'' is also specified) allows users with a
64uid of 0 to login on
65this line.
66These flag fields should not be quoted.
67.PP
68The string ``window='' may be followed by a quoted command
597e0114
JL
69string which
70.I init
452cf41c
KB
71will execute
72.B before
73starting the command specified by the second field.
74.SH EXAMPLES
3892b435 75.nf
452cf41c 76# root login on console at 1200 baud
b10a9b31 77console "/usr/libexec/getty std.1200" vt100 on secure
452cf41c 78# dialup at 1200 baud, no root logins
b10a9b31 79ttyd0 "/usr/libexec/getty d1200" dialup on # 555-1234
452cf41c 80# Mike's terminal: hp2621
b10a9b31 81ttyh0 "/usr/libexec/getty std.9600" hp2621-nl on # 457 Evans
452cf41c 82# John's terminal: vt100
b10a9b31 83ttyh1 "/usr/libexec/getty std.9600" vt100 on # 459 Evans
452cf41c 84# terminal emulate/window system
b10a9b31 85ttyv0 "/usr/new/xterm -L :0" vs100 on window="/usr/new/Xvs100 0"
452cf41c 86# Network pseudo ttys -- don't enable getty
9a843f03
MK
87ttyp0 none network
88ttyp1 none network off
3892b435 89.fi
6d85239e
KM
90.SH FILES
91/etc/ttys
92.SH "SEE ALSO"
452cf41c 93login(1), getttyent(3), ttyslot(3), gettytab(5), termcap(5), getty(8), init(8)