From owner-freebsd-questions Mon Feb 12 16:06:46 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id QAA15219 for questions-outgoing; Mon, 12 Feb 1996 16:06:46 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id QAA15213 for ; Mon, 12 Feb 1996 16:06:41 -0800 (PST) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id KAA07105; Tue, 13 Feb 1996 10:35:28 +1030 From: Michael Smith Message-Id: <199602130005.KAA07105@genesis.atrad.adelaide.edu.au> Subject: Re: How to disable Ctrl-Alt-Del ?! To: dirk@hal.in-berlin.de (Dirk Froemberg) Date: Tue, 13 Feb 1996 10:35:27 +1030 (CST) Cc: jdli@linux.csie.nctu.edu.tw, freebsd-questions@FreeBSD.ORG In-Reply-To: from "Dirk Froemberg" at Feb 12, 96 11:55:56 am MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG Precedence: bulk Dirk Froemberg stands accused of saying: > > How can I disable reboot from Ctrl-alt-Del ?! > > Hello! > > Unfortunaly you didn't mention whether you're using syscons or > pcvt. So I'll assume you're using syscons. > > The easiest way would be to prevent the kernel to perform a shutdown > after pressing CTRL-ALT-DEL. However, it would be nice to have an > option in /etc/sysconfig which is passed to the kernel via sysctl. > > The attached patch is against version 1.117.4.7 of syscons.c. So > the line numbering might be different from yours. After applying > the patch you have to add "options NOSCSHUTDOWN" to your kernel- > config-file in /sys/i386/conf. Finally, recompile your kernel. This is definitely the hard way of doing it. A much easier way (again using syscons) : Get your current keymap : # kbdcontrol -d >/root/keymap Edit the keymap and replace all instances of the token 'boot' with 'nop'. Reload the keymap : # kbdcontrol -l /root/keymap Edit /etc/sysconfig and specify the new keymap to be loaded at boottime. > Best regards Dirk -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "I seek PEZ!" - The Tick [[