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