Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Oct 2008 11:47:43 +0300
From:      Manolis Kiagias <sonic2000gr@gmail.com>
To:        Jeremy Chadwick <koitsu@FreeBSD.org>
Cc:        Olivier Nicole <on@cs.ait.ac.th>, freebsd-questions@freebsd.org, Peter Boosten <peter@boosten.org>
Subject:   Re: Disable CTRL-ALT-DEL
Message-ID:  <48F9A2AF.8010300@gmail.com>
In-Reply-To: <20081018081048.GA43067@icarus.home.lan>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48F9A2AF.8010300>