Keep them out!

Peter Black pmb at sequim.UUCP
Mon May 28 03:58:54 AEST 1990


In article <1270 at chinacat.Unicom.COM>, chip at chinacat.Unicom.COM (Chip Rosenthal) writes:
> In article <304 at fryepro.UUCP> gary at fryepro.UUCP (Gary L. Scorby) writes:
> >[On SCO XENIX 2.3.2] Is there a command that allows the super user to stop
> >anyone from logging in for a period of time?
> 
> No.  The "login" program does not support this kind of feature.

Telinit can not only keep others from logging in, it will logoff anyone
who is on when executed.  Telinit uses states 0-6 and reads the file
/etc/inittab.  You can have several states on your machine, one for
disabling modems, another for disabling all logins to do backups, etc.
It will run out of cron very nicely also (modems).

If you are using a serial board with tty device names with other than
two characters, you must fix /bin/telinit to work with all length tty
names by changing the line reading:


	/^[01].tty..$/p" \

to read

	/^[01].tty.*$/p" \

Peter M. Black, Peter M. Black Real Estate Co., Inc.
P.O. Box 2227, 315 E. Washington Street, Sequim, WA 98382
Voice (PST): (206) 683-1171 or 800-962-7307, FAX: (206) 683-5415
E-Mail: {attmail,uunet}!sequim!pmb



More information about the Comp.unix.xenix mailing list