1TTYS(5) File Formats Manual TTYS(5)
2
3
4
6 ttys - terminal initialization data
7
9 The ttys file contains information that is used by various routines to
10 initialize and control the use of terminal special files. This informa‐
11 tion is read with the getttyent(3) library routines. There is one line
12 in the ttys file per special file. Fields are separated by tabs and/or
13 spaces. Some fields may contain more than one word and should be
14 enclosed in double quotes. Blank lines and comments can appear any‐
15 where in the file; comments are delimited by `#' and new line. Unspeci‐
16 fied fields default to null. The first field is the terminal's entry
17 in the device directory, /dev. The second field of the file is the
18 command to execute for the line, typically getty(8), which performs
19 such tasks as baud-rate recognition, reading the login name, and call‐
20 ing login(1). It can be, however, any desired command, for example the
21 start up for a window system terminal emulator or some other daemon
22 process, and can contain multiple words if quoted. The third field is
23 the type of terminal normally connected to that tty line, as found in
24 the termcap(5) data base file. The remaining fields set flags in the
25 ty_status entry (see getttyent(3)) or specify a window system process
26 that init(8) will maintain for the terminal line. As flag values, the
27 strings `on' and `off' specify whether init should execute the command
28 given in the second field, while `secure' in addition to `on' allows
29 root to login on this line. These flag fields should not be quoted.
30 The string `window=' is followed by a quoted command string which init
31 will execute before starting getty. If the line ends in a comment, the
32 comment is included in the ty_comment field of the ttyent structure.
33
34 Some examples:
35
36 console "/usr/libexec/getty std.1200" vt100 on secure
37 ttyd0 "/usr/libexec/getty d1200" dialup on # 555-1234
38 ttyh0 "/usr/libexec/getty std.9600" hp2621-nl on # 254MC
39 ttyh1 "/usr/libexec/getty std.9600" plugboard on # John's office
40 ttyp0 none network
41 ttyp1 none network off
42 ttyv0 "/usr/new/xterm -L :0" vs100 on window="/usr/new/Xvs100 0"
43
44 The first example permits root login on the console at 1200 baud, the
45 second allows dialup at 1200 baud without root login, the third and
46 fourth allow login at 9600 baud with terminal types of "hp2621-nl" and
47 "plugboard" respectively, the fifth and sixth line are examples of net‐
48 work pseudo ttys, which should not have getty enabled on them, and the
49 last example shows a terminal emulator and window system startup entry.
50
52 /etc/ttys
53
55 login(1), getttyent(3), gettytab(5), init(8), getty(8)
56
57
58
597th Edition November 16, 1996 TTYS(5)