Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!gatech!bloom-beacon!husc6!harvard!adelie!ora!tim From: tim@ora.UUCP (Tim O'Reilly) Newsgroups: comp.unix.questions Subject: Re: Disabling logins under System V Message-ID: <632@ora.UUCP> Date: Tue, 14-Jul-87 09:25:14 EDT Article-I.D.: ora.632 Posted: Tue Jul 14 09:25:14 1987 Date-Received: Thu, 16-Jul-87 05:37:17 EDT References: <905@woton.UUCP> Organization: O'Reilly & Associates, Inc., Newton, MA Lines: 39 Summary: How about changing run level In article <905@woton.UUCP>, riddle@woton.UUCP (Prentiss Riddle ) writes: > I am looking for some advice about the preferred way to temporarily > disable all user logins under System V. > ...I want a simple, reversible solution > that can be run by the person who comes in on weekends to do our > backups. In /etc/inittab, the second field describes the "run level" at which a serial line will have a getty. Run level settings for normal multi-user use are 2 and 3. (Two different levels are available so you can temporarily disable getty on a port for dialin/dialout use by cu and uucp.) 6 can be used as a run level for multi-user administrative work. The point is that by specifying only certain run levels in a tty entry, and then changing the run level with init, you can control whether or not there's a getty on that tty. For example, with the entries: 000:236:respawn:/etc/getty tty000 9600 001:23:respawn:/etc/getty tty000 9600 002:2:respawn:/etc/getty tty000 9600 You can type: # init 6 and only tty000 will have a getty. Type: # init 3 and tty002 will be without one (for dialout by uucp or cu). -- LIVE: Tim O'Reilly (617) 527-4210 USPS: O'Reilly & Associates, Inc., 981 Chestnut Street, Newton, MA 02164 UUCP: seismo!uunet!ora!tim ARPA: tim@ora.uu.net