Date: Tue, 13 Feb 1996 10:35:27 +1030 (CST) From: Michael Smith <msmith@atrad.adelaide.edu.au> To: dirk@hal.in-berlin.de (Dirk Froemberg) Cc: jdli@linux.csie.nctu.edu.tw, freebsd-questions@FreeBSD.ORG Subject: Re: How to disable Ctrl-Alt-Del ?! Message-ID: <199602130005.KAA07105@genesis.atrad.adelaide.edu.au> In-Reply-To: <m0tlvvI-000BKfC@hal.in-berlin.de> from "Dirk Froemberg" at Feb 12, 96 11:55:56 am
next in thread | previous in thread | raw e-mail | index | archive | help
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 [[
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602130005.KAA07105>