Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83 (MC840302); site daab.UUCP
Path: utzoo!linus!philabs!cmcl2!seismo!mcvax!enea!daab!lasse
From: lasse@daab.UUCP (Lars Hammarstrand)
Newsgroups: net.unix,net.unix-wizards,net.decus
Subject: Re: Limiting logons to licensed number: how?
Message-ID: <144@daab.UUCP>
Date: Mon, 5-Aug-85 16:48:56 EDT
Article-I.D.: daab.144
Posted: Mon Aug  5 16:48:56 1985
Date-Received: Sat, 10-Aug-85 22:30:59 EDT
References: <1029@ucbtopaz.CC.Berkeley.ARPA> <112@vcvax1.UUCP>
Reply-To: lasse@unix.UUCP (Lars Hammarstrand)
Organization: Datorisering AB, Stockholm, Sweden
Lines: 43
Xref: linus net.unix:4706 net.unix-wizards:11436 net.decus:141

>That's a good point.  In our new VENIX version, we've tried to
>ease this problem through a new command called "ttystate" which
>can be used to quickly enable and disable login lines.  The
>approach which you seem to suggest would involve automatic
>dynamic enabling and disabling of login lines.  Although this
>seems feasible, I think it could be quite confusing for users
>attempting to log in on a line which is sometimes available and
>sometimes not.  The "ttystate" command has the virtue of being
>simple and deterministic.
>
>
>Paul Kleppner
>VenturCom, Inc.
>{harvard,mit-eddie}!cybvax0!vcvax1!paul

I hope that you are using the "run level field" in /etc/inittab and the
"telinit" command indirect via your "ttystate" command, becauce that is what it
is should be used for, switching tty lines on and off I mean.

It's the second field in /etc/inittab, and the following arguments serve as
directives to the "telinit" command that changes the run level and what lines
that should be on or off (From the manual) :

0-6	tells "init" to place the system in one of the "run-levels" 0 - 6.
	(one of the diggits 0-6)
a,b,c	tells "init" to process only those /etc/inittab file entries having the
	a, b  or c "run-level" set.
Q,q	tells "init" to re-examine the /etc/inittab file
S,s	tells "init" to enter the single user enviroment. When this level
	change is effected, the the virtual system teletype, "/dev/syscon", is
	change to the terminal from which the command was executed.

(Telinit command is used to direct the actions of "init" and can only be run by
someone who is superuser or a member of group: sys)



	My name: Lars Hammarstrand.
	My company: Datorisering AB,  SWEDEN.

	UUCP:	{seismo,decvax,philabs}!mcvax,ukc,unido!enea!daab!lasse
	ARPA:	decvax!mcvax!enea!daab!lasse@berkley.arpa