From owner-freebsd-questions@FreeBSD.ORG Sat Oct 18 08:47:51 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 463E910656A0 for ; Sat, 18 Oct 2008 08:47:51 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id C00AE8FC13 for ; Sat, 18 Oct 2008 08:47:50 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so217689uge.39 for ; Sat, 18 Oct 2008 01:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=gdkkJvU9xJySObuf9nTSqRAvcamVoIgVLYjtn0syHoU=; b=ROjM6r6dz3Mysfyu6YZr5qWX8HEFBtk+YdFxAH/DCWTLmksY3xtkvaD96lFJZTTVsE t+u4dDfJ9bITINGRj667HOySehubiGW/TCCyYPcoB5l4qc7Lr8sgybVCAkrhIhrlbhCZ sGdgWrw0x/GEkntbDfzDit3zwZscAIE7/PIpQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=NlxbzebRygWkm7WkD1a1vzWVynuAj/NCqJ/pf4t7iTSUfGNgofbylvBz46lRejkiMA ZCcku2G/0htUasSCYF8mVbFQL+WUZAcV2lCoyY5emcjcQK+c+KqL4YXpFN+vWVqRmkKP +9YM7BzxwGL36oP09uJqeSj9/63+6hRZcfFpw= Received: by 10.67.10.18 with SMTP id n18mr722393ugi.27.1224319666307; Sat, 18 Oct 2008 01:47:46 -0700 (PDT) Received: from atlantis.dyndns.org (athedsl-278835.home.otenet.gr [85.73.136.209]) by mx.google.com with ESMTPS id b39sm2207535ugf.46.2008.10.18.01.47.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 18 Oct 2008 01:47:45 -0700 (PDT) Message-ID: <48F9A2AF.8010300@gmail.com> Date: Sat, 18 Oct 2008 11:47:43 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.17 (X11/20081011) MIME-Version: 1.0 To: Jeremy Chadwick References: <200810180545.m9I5jY45021678@banyan.cs.ait.ac.th> <48F97D7A.5010303@gmail.com> <48F994A7.8060901@boosten.org> <48F99725.2030409@gmail.com> <20081018081048.GA43067@icarus.home.lan> In-Reply-To: <20081018081048.GA43067@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Olivier Nicole , freebsd-questions@freebsd.org, Peter Boosten Subject: Re: Disable CTRL-ALT-DEL X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2008 08:47:51 -0000 Jeremy Chadwick wrote: > On Sat, Oct 18, 2008 at 10:58:29AM +0300, Manolis Kiagias wrote: > >> Peter Boosten wrote: >> >>> Manolis Kiagias wrote: >>> >>> >>>> Olivier Nicole wrote: >>>> >>>> >>>>> Hi, >>>>> >>>>> On FreeBSD 6.3 how to disable the CTRL-ALT-DEL from halting/rebooting >>>>> the system? >>>>> >>>>> Best regards, >>>>> >>>>> Olivier >>>>> >>>>> >>>> There are two ways of doing this, both described in the FreeBSD FAQ here: >>>> >>>> http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#CAD-REBOOT >>>> >>>> >>> Hmmm, didn't know about the second one, and doesn't seem to be working >>> either (on both 7.0 and 6.3): >>> >>> sysctl hw.syscons.kbd_reboot=0 >>> sysctl: unknown oid 'hw.syscons.kbd_reboot' >>> >>> >>> Peter >>> >>> >> It seems you are right. Just checked on 6.3 and 7.0 and it does not >> exist. It does exist in 6.2, however. >> > > Hmm... > > # sysctl hw.syscons.kbd_reboot=0 > hw.syscons.kbd_reboot: 1 -> 0 > # sysctl hw.syscons.kbd_reboot=1 > hw.syscons.kbd_reboot: 0 -> 1 > # uname -a > FreeBSD icarus.home.lan 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Thu Oct 2 03:04:20 PDT 2008 root@icarus.home.lan:/usr/obj/usr/src/sys/PDSMI_PLUS_RELENG_7_amd64 amd64 > > Mystery solved. The sysctl only exists if you have not already compiled the kernel with options SC_DISABLE_REBOOT I just checked, and all the systems that do not show this were compiled with SC_DISABLE_REBOOT I installed a clean (vmware) 7.0 and hw.syscons.kbd_reboot exists.