4.3BSD beta release manual page
[unix-history] / usr / src / libexec / getty / ttys.5
CommitLineData
3892b435 1.\" @(#)ttys.5 6.1 (Berkeley) %G%
6d85239e 2.\"
3892b435 3.TH TTYS 5 ""
6d85239e
KM
4.AT 3
5.SH NAME
6ttys \- terminal initialization data
7.SH DESCRIPTION
8The
9.I ttys
3892b435
KM
10file contains information that is used by various routines to initialize
11and control the use of terminal special files. This information is read
12with the
13.IR getttyent (3)
14library routines.
5dc2d425
KM
15There is one line in the
16.I ttys
17file per special file.
3892b435
KM
18Fields are separated by tabs and/or spaces.
19A field of more than one word may be enclosed by quotes.
20Blank lines and comments can appear anywhere in the file; comments
21are delimited by `#' and new line. Unspecified fields default to
22the empty string or zero as appropriate.
23The first field is the terminal's entry in the device directory, /dev.
24The second field of the file is the command to execute for the line,
25typically
6d85239e 26.IR getty (8),
5dc2d425 27which performs such tasks as baud-rate recognition, reading the login name,
6d85239e 28and calling
3892b435
KM
29.IR login (1).
30It can be, however, any command you wish, for example
31the start up for a window system terminal emulator or maintain other
32daemon processes.
33The third field is the type of terminal normally connected to the
34terminal special file as found in the
35.IR termcap (5)
36data base file.
37The remaining fields are flags to be set in the
38.I ty_status
39entry (see
40.IR getttyent (3))
41or for a window system process indicated by
42the "window" keyword that
43.IR init(8)
44will maintain for the terminal line.
45If the line ends in a comment, the comment is included in the
46.I ty_comment
47field of the ttyent structure.
48.PP
49Some examples:
50.PP
51.nf
52console "/etc/getty std.1200" vt100 on secure
53ttyd0 "/etc/getty d1200" dialup on
54ttyh0 "/etc/getty std.9600" hp2621-nl on
55ttyh1 "/etc/getty std.9600" plugboard on
56ttyp0 none network
57ttyp1 none network off
58ttyv0 "/etc/xpty -L :0" vs100 on window="/etc/X 0"
59.fi
60.PP
61The first example permits root login on the console at 1200 baud,
62the second allows dialup at 1200 baud without root login,
63the third and fourth allow login at 9600 baud with terminal types of
64"hp2621-nl" and "plugboard" respectively,
65the fifth and sixth line are examples of network pseudo ttys, which
66should not have getty enabled on them,
67and the last example shows a terminal emulator and window system
68startup entry.
6d85239e
KM
69.SH FILES
70/etc/ttys
71.SH "SEE ALSO"
3892b435 72getttyent(3), gettytab(5), init(8), getty(8), login(1)