Deleted Added
full compact
ttys.5 (15645) ttys.5 (21189)
1.\" Copyright (c) 1985, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" from: @(#)ttys.5 8.1 (Berkeley) 6/4/93
1.\" Copyright (c) 1985, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" from: @(#)ttys.5 8.1 (Berkeley) 6/4/93
33.\" $Id: ttys.5,v 1.1.1.2 1996/04/13 15:33:16 joerg Exp $
33.\" $Id: ttys.5,v 1.3 1996/05/05 19:01:13 joerg Exp $
34.\" "
34.\" "
35.Dd June 4, 1993
35.Dd November 17, 1996
36.Dt TTYS 5
37.Os
38.Sh NAME
39.Nm ttys
40.Nd terminal initialization information
41.Sh DESCRIPTION
42The file
43.Nm ttys

--- 37 unchanged lines hidden (view full) ---

81either
82.Xr getty 8
83or
84.Xr login 1 .
85.Pp
86The remaining fields set flags in the
87.Fa ty_status
88entry (see
36.Dt TTYS 5
37.Os
38.Sh NAME
39.Nm ttys
40.Nd terminal initialization information
41.Sh DESCRIPTION
42The file
43.Nm ttys

--- 37 unchanged lines hidden (view full) ---

81either
82.Xr getty 8
83or
84.Xr login 1 .
85.Pp
86The remaining fields set flags in the
87.Fa ty_status
88entry (see
89.Xr getttyent 3 )
90or specify a window system process that
89.Xr getttyent 3 ),
90specify a window system process that
91.Xr init 8
91.Xr init 8
92will maintain for the terminal line.
92will maintain for the terminal line, or specify a tty group
93name that allows the login class database (see
94.Xr login.conf 5 )
95to refer to many ttys as a group, to selectively allow or
96deny access or enable or disable accounting facilities for
97ttys as a group.
93.Pp
94As flag values, the strings ``on'' and ``off'' specify that
95.Xr init
96should (should not) execute the command given in the second field,
97while ``secure'' (if ``on'' is also specified) allows users with a
98uid of 0 to login on
99this line.
100The flags ``local'', ``rtscts'', ``mdmbuf'', and ``softcar''

--- 11 unchanged lines hidden (view full) ---

112These flag fields should not be quoted.
113.Pp
114The string ``window='' may be followed by a quoted command
115string which
116.Xr init
117will execute
118.Em before
119starting the command specified by the second field.
98.Pp
99As flag values, the strings ``on'' and ``off'' specify that
100.Xr init
101should (should not) execute the command given in the second field,
102while ``secure'' (if ``on'' is also specified) allows users with a
103uid of 0 to login on
104this line.
105The flags ``local'', ``rtscts'', ``mdmbuf'', and ``softcar''

--- 11 unchanged lines hidden (view full) ---

117These flag fields should not be quoted.
118.Pp
119The string ``window='' may be followed by a quoted command
120string which
121.Xr init
122will execute
123.Em before
124starting the command specified by the second field.
125.Pp
126The string ``group='' may be followed by a group name comprised of
127alphanumeric characters that can be used by
128.Xr login.group 5
129to refer to many tty lines as a group to enable or disable access
130and accounting facilities.
131If no group is specified, then the tty becomes a member of the group
132"none".
133For backwards compatibility, the ``group='' should appear last on the
134line, immediately before the optional comment.
120.Sh EXAMPLES
121.Bd -literal
122# root login on console at 1200 baud
123console "/usr/libexec/getty std.1200" vt100 on secure
124# dialup at 1200 baud, no root logins
135.Sh EXAMPLES
136.Bd -literal
137# root login on console at 1200 baud
138console "/usr/libexec/getty std.1200" vt100 on secure
139# dialup at 1200 baud, no root logins
125ttyd0 "/usr/libexec/getty d1200" dialup on # 555-1234
140ttyd0 "/usr/libexec/getty d1200" dialup on group=dialup # 555-1234
126# Mike's terminal: hp2621
141# Mike's terminal: hp2621
127ttyh0 "/usr/libexec/getty std.9600" hp2621-nl on # 457 Evans
142ttyh0 "/usr/libexec/getty std.9600" hp2621-nl on group=dialup # 457 Evans
128# John's terminal: vt100
143# John's terminal: vt100
129ttyh1 "/usr/libexec/getty std.9600" vt100 on # 459 Evans
144ttyh1 "/usr/libexec/getty std.9600" vt100 on group=dialup # 459 Evans
130# terminal emulate/window system
131ttyv0 "/usr/new/xterm -L :0" vs100 on window="/usr/new/Xvs100 0"
132# Network pseudo ttys -- don't enable getty
145# terminal emulate/window system
146ttyv0 "/usr/new/xterm -L :0" vs100 on window="/usr/new/Xvs100 0"
147# Network pseudo ttys -- don't enable getty
133ttyp0 none network
134ttyp1 none network off
148ttyp0 none network group=pty
149ttyp1 none network off group=pty
135.Ed
136.Sh FILES
137.Bl -tag -width /etc/ttys -compact
138.It Pa /etc/ttys
139.El
140.Sh SEE ALSO
141.Xr login 1 ,
142.Xr getttyent 3 ,
143.Xr ttyslot 3 ,
144.Xr gettytab 5 ,
150.Ed
151.Sh FILES
152.Bl -tag -width /etc/ttys -compact
153.It Pa /etc/ttys
154.El
155.Sh SEE ALSO
156.Xr login 1 ,
157.Xr getttyent 3 ,
158.Xr ttyslot 3 ,
159.Xr gettytab 5 ,
160.Xr login.conf 5 ,
145.Xr termcap 5 ,
146.Xr getty 8 ,
147.Xr init 8
148.\".Xr init 8 ,
149.\".Xr ttyflags 8
150.Sh HISTORY
151A
152.Nm
153file appeared in
154.At v6 .
161.Xr termcap 5 ,
162.Xr getty 8 ,
163.Xr init 8
164.\".Xr init 8 ,
165.\".Xr ttyflags 8
166.Sh HISTORY
167A
168.Nm
169file appeared in
170.At v6 .