From owner-freebsd-questions Mon Feb 12 12:25:30 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA26255 for questions-outgoing; Mon, 12 Feb 1996 12:25:30 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA26250 for ; Mon, 12 Feb 1996 12:25:27 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA20789; Mon, 12 Feb 1996 13:15:19 -0700 From: Terry Lambert Message-Id: <199602122015.NAA20789@phaeton.artisoft.com> Subject: Re: How to disable Ctrl-Alt-Del ?! To: dirk@hal.in-berlin.de (Dirk Froemberg) Date: Mon, 12 Feb 1996 13:15:19 -0700 (MST) 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 X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org Precedence: bulk > Chien-Ta Lee writes: > > > 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. Ugh. Why not just use kbdcontrol to load a slightly modified console keyboard map without an "RBT" token in it for the "Delete" key with the "Control" and "Alt" modifier bits present. You could do this in /etc/rc. man kbdcontrol(1) and keyboard(4) for more information. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.