Operating System - Linux
1829837 Members
2257 Online
109993 Solutions
New Discussion

prevent cntrl alt delete from rebooting server at login prompt on console

 
SOLVED
Go to solution
Ratzie
Super Advisor

prevent cntrl alt delete from rebooting server at login prompt on console

Is there a way to prevent someone from walking by and hit the CNTRL ALT DELETE when server is at the login prompt on the console.

I did it by accident, (Ahhh a windows thing) wanted to log out, and the server instantly rebooted.
4 REPLIES 4
Jeff_Traigle
Honored Contributor

Re: prevent cntrl alt delete from rebooting server at login prompt on console

There's an entry something like the following in /etc/inittab:

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

Comment this line and run "/sbin/init q".

Vaguely recalled it was something simple, but found the details on the following web page:

http://www.ecst.csuchico.edu/~dranch/LINUX/TrinityOS/cHTML/TrinityOS-c-8.html
--
Jeff Traigle
dirk dierickx
Honored Contributor
Solution

Re: prevent cntrl alt delete from rebooting server at login prompt on console

you can also replace the shutdown command with any command you like. 'logger' for example to put a message on the console and syslog saying that 'ctrl-alt-del is disabled'.
Steven E. Protter
Exalted Contributor

Re: prevent cntrl alt delete from rebooting server at login prompt on console

Shalom,

This may seem like a good idea, but it is a customization that all operators and consultants will need to know.

I can almost guarantee that some day you will get a call from an operator, manager or consulting whining that they need to boot the system but can not.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ratzie
Super Advisor

Re: prevent cntrl alt delete from rebooting server at login prompt on console

That was the file I modified. Just never did the init q.

Well reboot fixed it anyway.