how to stop reboot and shutdown by some keys in freebsd14.2 ?

dear all;
i have problems about the keys for reboot and shutdown of freebsd14.2 ..
1. when i press "ctl+alt+del" three keys in the same time. the freebsd14.2 will reboot . how to stop this function ? or change to other keys ? thanks.
2. when i press "physical power button of machines " , the freebsd14.2 will shutdown . how to stop this function ? or change it to other keys ? thanks.

all operations was working in the shell .and gnome GUI. i don't know how to disable it . thanks.
 
For ctrl+alt+del sequence
Code:
sysctl hw.syscons.kbd_reboot=0
and
Code:
echo "hw.syscons.kbd_reboot=0" >>  /etc/sysctl.conf
to save this option after reboot
 
To disable power button, try

Code:
hw.acpi.power_button_state=S0

Not sure it is a good idea. Some BIOS allow you to boot by pressing a key on the keyboard. But for shutdown, I don't know anything like that (except on SUN stations)
 
For ctrl+alt+del sequence
Code:
sysctl hw.syscons.kbd_reboot=0
and
Code:
echo "hw.syscons.kbd_reboot=0" >>  /etc/sysctl.conf
to save this option after reboot
Dear ooioo:
thanks. i have study it more. syscons is legacy console, VT is now console in freebsd14.2 ..
so we will need sysctl kern.vt.kbd_reboot=0
if we use the syscons , we will do sysctl hw.syscons.kbd_reboot=0.
thanks.
 
Back
Top