From owner-freebsd-questions Tue Feb 15 17:25:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by builder.freebsd.org (Postfix) with ESMTP id C1EF44B3A for ; Tue, 15 Feb 2000 16:58:14 -0800 (PST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id LAA13166; Wed, 16 Feb 2000 11:29:30 +1030 (CST) Date: Wed, 16 Feb 2000 11:29:30 +1030 From: Greg Lehey To: Richard Cotrina Cc: freebsd-questions@FreeBSD.ORG Subject: Re: CTR+ALT+DEL Sequence Message-ID: <20000216112930.G12517@freebie.lemis.com> References: <007b01bf77ec$f75dcc90$4d01190a@tp.com.pe> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <007b01bf77ec$f75dcc90$4d01190a@tp.com.pe> WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tuesday, 15 February 2000 at 14:43:42 -0500, Richard Cotrina wrote: > Hi Folks: > > I found out that anyone can force a shutdown in my FreeBSD box using the > CTR+AL+DEL Keyboard Sequence at the console. I don't know if it is a bug , > but I would like to know if there is something to fix or block this keyboard > sequence. I am running a FreeBSD 3.4-Release Box. > > However, It doesn't happen when the console is in graphic (X-Win) mode , > only works in character mode. > > Any points would be appreciated. Thanks in Advance. Basically, the feeling is "If they can get at the keyboard, they can usually get at the machine and pull the plug. This will shut the machine down too, just not as cleanly." You can disable the feature by setting a new keymap. See kbdcontrol(8) and the files in /usr/share/syscons/keymaps. For example, you might start with /usr/share/syscons/keymaps/us.iso.kbd, which contains the line 083 del '.' '.' '.' '.' '.' boot boot N Make a copy, say us.iso.mykbd, and change this line to: 083 del '.' '.' '.' '.' '.' '.' '.' N and reload the keymap: # kbdcontrol -l /usr/share/syscons/keymaps/us.iso.mykbd You can set this to happen automatically by putting the appropriate entry in /etc/rc.conf: keymap="us.iso.mykbd" Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message