Path: utzoo!attcan!uunet!sequim!pmb From: pmb@sequim.UUCP (Peter Black) Newsgroups: comp.unix.xenix Subject: Re: Keep them out! Summary: If you are using SCO Xenix 2.3.x, read about telinit. Message-ID: <14@sequim.UUCP> Date: 27 May 90 17:58:54 GMT References: <304@fryepro.UUCP> <1270@chinacat.Unicom.COM> Distribution: na Organization: Peter M. Black Real Estate Co., Inc. - Sequim, WA Lines: 28 In article <1270@chinacat.Unicom.COM>, chip@chinacat.Unicom.COM (Chip Rosenthal) writes: > In article <304@fryepro.UUCP> gary@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