[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: why user can CTRL+ALT+DEL to shutdown on my machine?



>vi /etc/inittab and change the following line
>
>ca::ctraltdel:/sbin/shutdown -t3 -r now
> to
>#ca::ctraltdel:/sbin/shutdown -t3 -r now
>
>then :!qw to write and exit


Won't this result in linux NOT trapping the ctrl-alt-del key sequence,
allowing it to get to the BIOS of the machine and causing an immediate reset
without shutting down cleanly?  Hardly the result I would want on my
machine.  Why not change the line to say:

ca::ctraltdel:/bin/true

Or point it to any other program that really doesn't do anything.  This way,
when someone presses ctrl-alt-del linux WILL trap the sequence and it will
run a harmless program instead of rebooting.  This is only theoretical -- I
don't have a machine in front of me to test this on at the moment.

Adam Alexander



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]