diff options
author | davidn <davidn@FreeBSD.org> | 1997-01-02 08:05:43 +0000 |
---|---|---|
committer | davidn <davidn@FreeBSD.org> | 1997-01-02 08:05:43 +0000 |
commit | 92746eca8682886861092d9eca8783451c1e5fd0 (patch) | |
tree | 62a914cb0e26eee76f6757ec5a9ef9b1ae57d3e6 /libexec/getty | |
parent | 7174e698fdd0caf4f14e4f893f1bcec7a1f74e80 (diff) | |
download | FreeBSD-src-92746eca8682886861092d9eca8783451c1e5fd0.zip FreeBSD-src-92746eca8682886861092d9eca8783451c1e5fd0.tar.gz |
Added group= facility to /etc/ttys for tty grouping for more
more manageable and convenient referencing by login.conf (login
class database) and (e.g.) login.access.
This is the first of a group of commits which implements the login
class capabilities database.
Diffstat (limited to 'libexec/getty')
-rw-r--r-- | libexec/getty/ttys.5 | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/libexec/getty/ttys.5 b/libexec/getty/ttys.5 index 7b65526..7337810 100644 --- a/libexec/getty/ttys.5 +++ b/libexec/getty/ttys.5 @@ -30,9 +30,9 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)ttys.5 8.1 (Berkeley) 6/4/93 -.\" $Id: ttys.5,v 1.1.1.2 1996/04/13 15:33:16 joerg Exp $ +.\" $Id: ttys.5,v 1.3 1996/05/05 19:01:13 joerg Exp $ .\" " -.Dd June 4, 1993 +.Dd November 17, 1996 .Dt TTYS 5 .Os .Sh NAME @@ -86,10 +86,15 @@ or The remaining fields set flags in the .Fa ty_status entry (see -.Xr getttyent 3 ) -or specify a window system process that +.Xr getttyent 3 ), +specify a window system process that .Xr init 8 -will maintain for the terminal line. +will maintain for the terminal line, or specify a tty group +name that allows the login class database (see +.Xr login.conf 5 ) +to refer to many ttys as a group, to selectively allow or +deny access or enable or disable accounting facilities for +ttys as a group. .Pp As flag values, the strings ``on'' and ``off'' specify that .Xr init @@ -117,21 +122,31 @@ string which will execute .Em before starting the command specified by the second field. +.Pp +The string ``group='' may be followed by a group name comprised of +alphanumeric characters that can be used by +.Xr login.group 5 +to refer to many tty lines as a group to enable or disable access +and accounting facilities. +If no group is specified, then the tty becomes a member of the group +"none". +For backwards compatibility, the ``group='' should appear last on the +line, immediately before the optional comment. .Sh EXAMPLES .Bd -literal # root login on console at 1200 baud console "/usr/libexec/getty std.1200" vt100 on secure # dialup at 1200 baud, no root logins -ttyd0 "/usr/libexec/getty d1200" dialup on # 555-1234 +ttyd0 "/usr/libexec/getty d1200" dialup on group=dialup # 555-1234 # Mike's terminal: hp2621 -ttyh0 "/usr/libexec/getty std.9600" hp2621-nl on # 457 Evans +ttyh0 "/usr/libexec/getty std.9600" hp2621-nl on group=dialup # 457 Evans # John's terminal: vt100 -ttyh1 "/usr/libexec/getty std.9600" vt100 on # 459 Evans +ttyh1 "/usr/libexec/getty std.9600" vt100 on group=dialup # 459 Evans # terminal emulate/window system ttyv0 "/usr/new/xterm -L :0" vs100 on window="/usr/new/Xvs100 0" # Network pseudo ttys -- don't enable getty -ttyp0 none network -ttyp1 none network off +ttyp0 none network group=pty +ttyp1 none network off group=pty .Ed .Sh FILES .Bl -tag -width /etc/ttys -compact @@ -142,6 +157,7 @@ ttyp1 none network off .Xr getttyent 3 , .Xr ttyslot 3 , .Xr gettytab 5 , +.Xr login.conf 5 , .Xr termcap 5 , .Xr getty 8 , .Xr init 8 |