From owner-freebsd-questions Mon Feb 12 03:01:33 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id DAA14451 for questions-outgoing; Mon, 12 Feb 1996 03:01:33 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id DAA14446 for ; Mon, 12 Feb 1996 03:01:31 -0800 (PST) Received: from methan.chemie.fu-berlin.de (methan.chemie.fu-berlin.de [130.133.2.81]) by who.cdrom.com (8.6.12/8.6.11) with SMTP id CAA17773 for ; Mon, 12 Feb 1996 02:59:56 -0800 Received: by methan.chemie.fu-berlin.de (Smail3.1.29.1) from hal.in-berlin.de with gsmtp id ; Mon, 12 Feb 96 11:57 MET Received: by hal.in-berlin.de (Smail3.1.29.1 #1) id m0tlvvI-000BKfC; Mon, 12 Feb 96 11:55 MET Message-Id: From: dirk@hal.in-berlin.de (Dirk Froemberg) Subject: Re: How to disable Ctrl-Alt-Del ?! To: jdli@linux.csie.nctu.edu.tw (Chien-Ta Lee) Date: Mon, 12 Feb 1996 11:55:56 +0100 (MET) Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <199602120312.LAA25839@linux.csie.nctu.edu.tw> from "Chien-Ta Lee" at Feb 12, 96 11:12:51 am X-Mailer: ELM [version 2.4 PL24 ME8b] 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. Best regards Dirk *** /sys/i386/isa/syscons.c.dist Fri Feb 9 19:51:05 1996 --- /sys/i386/isa/syscons.c Mon Feb 12 11:39:40 1996 *************** *** 25,31 **** * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ! * $Id: syscons.c,v 1.117.4.7 1996/02/08 06:32:45 pst Exp $ */ #include "sc.h" --- 25,31 ---- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ! * $Id: syscons.c,v 1.117.4.7.1 1996/02/08 06:32:45 pst Exp $ */ #include "sc.h" *************** *** 2505,2511 **** --- 2505,2513 ---- case NOP: break; case RBT: + #ifndef NOSCSHUTDOWN shutdown_nice(); + #endif break; case SUSP: #if NAPM > 0 -- e-mail: dirk@hal.in-berlin.de PGP-Public-Key available "Arbeiten ist nicht vergasen - erschiessen - haengen - irgendwie toeten!" -- Klaus Scheurenberg, "Ich will leben"