|
|
1.1 ! root 1: .\" Copyright (c) 1985 The Regents of the University of California. ! 2: .\" All rights reserved. ! 3: .\" ! 4: .\" Redistribution and use in source and binary forms are permitted provided ! 5: .\" that: (1) source distributions retain this entire copyright notice and ! 6: .\" comment, and (2) distributions including binaries display the following ! 7: .\" acknowledgement: ``This product includes software developed by the ! 8: .\" University of California, Berkeley and its contributors'' in the ! 9: .\" documentation or other materials provided with the distribution and in ! 10: .\" all advertising materials mentioning features or use of this software. ! 11: .\" Neither the name of the University nor the names of its contributors may ! 12: .\" be used to endorse or promote products derived from this software without ! 13: .\" specific prior written permission. ! 14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED ! 15: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF ! 16: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 17: .\" ! 18: .\" @(#)ttys.5 6.7 (Berkeley) 6/23/90 ! 19: .\" ! 20: .TH TTYS 5 "June 23, 1990" ! 21: .AT 3 ! 22: .SH NAME ! 23: ttys \- terminal initialization data ! 24: .SH DESCRIPTION ! 25: The ! 26: .I ttys ! 27: file contains information that is used by various routines to initialize ! 28: and control the use of terminal special files. ! 29: This information is read with the ! 30: .IR getttyent (3) ! 31: library routines. ! 32: There is one line in the ! 33: .I ttys ! 34: file per special file. ! 35: Fields are separated by tabs and/or spaces. ! 36: Fields comprised of more than one word should be enclosed in double ! 37: quotes (``"''). ! 38: Blank lines and comments may appear anywhere in the file; comments ! 39: are delimited by hash marks (``#'') and new lines. ! 40: Any unspecified fields will default to null. ! 41: .PP ! 42: The first field is the terminal's entry in the device directory, ``/dev''. ! 43: .PP ! 44: The second field of the file is the command to execute for the line, ! 45: typically ! 46: .IR getty (8), ! 47: which performs such tasks as baud-rate recognition, reading the login name, ! 48: and calling ! 49: .IR login (1). ! 50: It can be, however, any desired command, for example ! 51: the start up for a window system terminal emulator or some other ! 52: daemon process, and can contain multiple words if quoted. ! 53: .PP ! 54: The third field is the type of terminal usually connected to that ! 55: tty line, normally the one found in the ! 56: .IR termcap (5) ! 57: data base file. ! 58: The environmental variable ``TERM'' is initialized with the value by ! 59: either ! 60: .IR getty (8) ! 61: or ! 62: .IR login (1). ! 63: .PP ! 64: The remaining fields set flags in the ! 65: .I ty_status ! 66: entry (see ! 67: .IR getttyent (3)) ! 68: or specify a window system process that ! 69: .IR init (8) ! 70: will maintain for the terminal line. ! 71: .PP ! 72: As flag values, the strings ``on'' and ``off'' specify that ! 73: .I init ! 74: should (should not) execute the command given in the second field, ! 75: while ``secure'' (if ``on'' is also specified) allows users with a ! 76: uid of 0 to login on ! 77: this line. ! 78: These flag fields should not be quoted. ! 79: .PP ! 80: The string ``window='' may be followed by a quoted command ! 81: string which ! 82: .I init ! 83: will execute ! 84: .B before ! 85: starting the command specified by the second field. ! 86: .SH EXAMPLES ! 87: .nf ! 88: # root login on console at 1200 baud ! 89: console "/usr/libexec/getty std.1200" vt100 on secure ! 90: # dialup at 1200 baud, no root logins ! 91: ttyd0 "/usr/libexec/getty d1200" dialup on # 555-1234 ! 92: # Mike's terminal: hp2621 ! 93: ttyh0 "/usr/libexec/getty std.9600" hp2621-nl on # 457 Evans ! 94: # John's terminal: vt100 ! 95: ttyh1 "/usr/libexec/getty std.9600" vt100 on # 459 Evans ! 96: # terminal emulate/window system ! 97: ttyv0 "/usr/new/xterm -L :0" vs100 on window="/usr/new/Xvs100 0" ! 98: # Network pseudo ttys -- don't enable getty ! 99: ttyp0 none network ! 100: ttyp1 none network off ! 101: .fi ! 102: .SH FILES ! 103: /etc/ttys ! 104: .SH "SEE ALSO" ! 105: login(1), getttyent(3), ttyslot(3), gettytab(5), termcap(5), getty(8), init(8)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.